Adding Repositories in Centos 5.3

yum install yum-priorities
vim /etc/yum/pluginconf.d/priorities.conf
—-
[main]
enabled=1
—-
 
Install RPMForge:
cd /home
wget http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt  //install DAG’s GPG key
rpm -K rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm //verify package
rpm -i rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm //install
 
yum check-update
 
Setting priorities:
—-
cd /etc/yum.repos.d
dir  //to find .repo files
vim rpmforge.repo    //set priority to 3 or higher
vim /etc/yum.repos.d/CentOS-Base.repo
—-
priority=N //where N=1 to 99
—-
—- Recommended settings —-
[base], [addons], [updates], [extras] … priority=1
[centosplus],[contrib] … priority=2
Third Party Repos such as rpmforge … priority=N  (where N is > 10 and based on your preference)
—-
Posted on Categories Linux

Leave a Reply

Your email address will not be published. Required fields are marked *