These are comments I made to myself for installing rpmforge repository on my Centos machines. Covers both centos4 and centos5
http://wiki.centos.org/Repositories/RPMForge
Centos4: yum --enablerepo=extras install yum-plugin-priorities
Centos5: yum install yum-priorities
Make sure that yum-priorities is enabled by editing the
/etc/yum/pluginconf.d/priorities.conf
file, and ensuring that it contains the following lines:
[main]
enabled=1
(this should be the default)
rpm --import
http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
wget
http://apt.sw.be/redhat/el5/en/i386/RPM ... f.i386.rpm
wget
http://apt.sw.be/redhat/el4/en/i386/RPM ... f.i386.rpm
rpm -K rpmforge-release-0.3.6-1.el5.rf.i386.rpm
(check signature)
rpm -i rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Edit the .repo files in /etc/yum.repos.d/ and set up priorities by adding
the line:
priority=N
to a repository entry, where N is an integer number from 1 to 99.
The recommended settings are:
[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)