Adding Repositories in Centos 5.3

yum install yum-priorities
vim /etc/yum/pluginconf.d/priorities.conf
Install RPMForge:
cd /home
rpm –import  //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 *