http://bbs.ithome.com/thread-536499-1-1.html
一、
安装yum-priorities插件
yum install yum-priorities -y
设置yum在调用软件源时的顺序[base], [addons], [updates], [extras] … priority=1;[CentOSplus],[contrib] … priority=2
sudo gedit /etc/yum.repos.d/CentOS-Base.repo
二、
下载与安装EPEL(32位系统)
wget http://download.fedoraproject.or ... ease-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
导入DAG的PGP Key
rpm --import https://fedoraproject.org/static/0608B895.txt
设置/etc/yum.repos.d/epel.repo文件中源的级别 priority=11
gedit /etc/yum.repos.d/epel.repo
三、
下载与安装rpmforge(32位系统)
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.i686.rpm
安装DAG的PGP Key
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
验证rpmforge的rpm文件包
rpm -K rpmforge-release-0.5.3-1.el6.rf.*.rpm
安装rpmforge的rpm文件包
rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm
设置/etc/yum.repos.d/rpmforge.repo文件中源的级别priority=13
gedit /etc/yum.repos.d/rpmforge.repo
四、
配置YUM
yum clean all
yum makecache