在CentOS 6中安装RPMForge存储库

更新: RPMForge / RepoForge是一个无效的项目。不维护。不要使用它。

RPMForge 是Linux世界中最著名的存储库之一。它用于在基于RPM的发行版中安装第三方软件。它包含5000多个软件包。

在CentOS中安装RPMForge存储库

尽管此处提供的步骤也可以在RHEL 6.x / Scientific Linux 6.x上运行,但已在CentOS 6.3 32位版本中进行了测试。

首先检查您的操作系统版本。然后下载relevent存储库。要检查操作系统版本,请使用“ uname -a”命令。

# uname -a
Linux mainserver.ostechnix.com 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC 2012 i686 i686 i386 GNU/Linux

要安装Rpmforge存储库,请从以下位置下载最新的rpmforge-release rpm 这个位置

# wget http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
[[email protected] ~]# rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

测试RPMForge存储库

现在,让我们安装一个示例软件包,以验证Rpmforge存储库是否正在运行。

# yum install htop
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror-fpt-telecom.fpt.net
 * extras: mirror-fpt-telecom.fpt.net
 * rpmforge: mirror-fpt-telecom.fpt.net
 * updates: ftp.iitm.ac.in
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package htop.i686 0:1.0.2-1.el6.rf will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
 Package       Arch          Version                    Repository         Size
================================================================================
Installing:
 htop          i686          1.0.2-1.el6.rf             rpmforge           78 k
Transaction Summary
================================================================================
Install       1 Package(s)
Total download size: 78 k
Installed size: 186 k
Is this ok [y/N]: y
Downloading Packages:
htop-1.0.2-1.el6.rf.i686.rpm                             |  78 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : htop-1.0.2-1.el6.rf.i686                                     1/1 
  Verifying  : htop-1.0.2-1.el6.rf.i686                                     1/1 
Installed:
  htop.i686 0:1.0.2-1.el6.rf                                                    
Complete!

禁用RPMForge存储库

要禁用RPMForge存储库,请导航至/etc/yum.repos.d/,打开rpmforge.repo文件并设置enabled = 0。

### Name: RPMforge RPM Repository for RHEL 6 - dag
### URL: http://rpmforge.net/
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

而已。祝你有美好的一天。
 

Sidebar