Yum三方仓库——RPMForge
参考:How to Enable RPMForge Repository in RHEL/CentOS 7.x/6.x/5.x
RPMForge / RepoForge这两个项目已经死亡,不应该使用 - 请使用EPEL Repository。
简介
RPMforge软件仓库用于为Red Hat Enterprise Linux(RHEL)和Community ENTerprise操作系统(CentOS)提供第三方软件包。RPMforge软件仓库不是RHEL或CentOS的一部分,但它旨在与这些操作系统一起使用。 完整的RPMForge包列表可以在http://packages.sw.be/上找到。目前已提供rpm包多大5000多个。
在RHEL / CentOS 7/6/5/4中安装RPMForge软件仓库
根据不同系统和版本执行对应命令
RHEL/CentOS 7 64 Bit
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
RHEL/CentOS 6 32-64 Bit
## RHEL/CentOS 6 32 Bit OS ## # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm # rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.i686.rpm ## RHEL/CentOS 6 64 Bit OS ## # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
RHEL/CentOS 5 32-64 Bit
## RHEL/CentOS 5 32 Bit OS ## # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm # rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm ## RHEL/CentOS 5 64 Bit OS ## # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
RHEL/CentOS 4 32-64 Bit
## RHEL/CentOS 4 32 Bit OS ## # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.i386.rpm # rpm -Uvh rpmforge-release-0.5.2-2.el4.rf.i386.rpm ## RHEL/CentOS 4 64 Bit OS ## # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm
怎样知道系统是32 位还是64 位?
方式一
使用uname -a命令,32位系统会显示i686 i686 i386 GNU/Linux;64位会显示x86_64 x86_64 x86_64 GNU/Linux.
32 Bit RHEL/CentOS
# uname -r Linux tecmint.com 2.6.32-279.5.2.el6.i686 #1 SMP Thu Aug 23 22:16:48 UTC 2012 i686 i686 i386 GNU/Linux
64 Bit RHEL/CentOS
# uname -r Linux tecmint.com 2.6.32-279.5.2.el6.i686 #1 SMP Thu Aug 23 22:16:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
方式二
getconf LONG_BIT
在RHEL / CentOS 7/6/5/4下导入RPMForge软件仓库密钥
下载并安装DAG’s GPG key
# wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # rpm --import RPM-GPG-KEY.dag.txt
GPG密钥存储在 /etc/pki/rpm-gpg 目录,通常是RPM-GPG-KEY-rpmforge-dag文件
在RHEL / CentOS 7/6/5/4下使用RPMForge软件仓库安装软件
通过--enablerepo=epel 选项,表明我们操作的yum命令是在epel这个仓库进行的。
# yum --enablerepo=rpmforge install aria2 Loaded plugins: fastestmirror, refresh-packagekit Loading mirror speeds from cached hostfile rpmforge Setting up Install Process Dependencies Resolved ================================================================================================= Package Arch Version Repository Size ================================================================================================= Installing: aria2 i686 1.15.1-1.el6.rf rpmforge 1.2 M Installing for dependencies: nettle i686 2.2-1.el6.rf rpmforge 359 k Transaction Summary ================================================================================================= Install 2 Package(s)
在RHEL / CentOS 7/6/5/4下紧拥RPMForge软件仓库
修改RPMForge软件仓库配置文件/etc/yum.repos.d/rpmforge.repo.
enabled=1 改为 enabled=0。1意味着打开,0意味着关闭