centos 添加YUM源

[1] Add RPMforge Repository for yum because that has many useful packages.
[root@dlp ~]#
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
[root@dlp ~]#
rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
Preparing… ###################################### [100%] 1:rpmforge-release ###################################### [100%]
[root@dlp ~]#
sed -i -e "s/enabled = 1/enabled = 0/g" /etc/yum.repos.d/rpmforge.repo

[2] Add repository EPEL that is provided from Fedora project.

[root@dlp ~]#
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@dlp ~]#
rpm -Uvh epel-release-6-8.noarch.rpm
Preparing… ###################################### [100%] 1:epel-release ###################################### [100%]
[root@dlp ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo

 

你可能感兴趣的:(centos,yum,源)