How to Add the RPMforge Repository in RHEL/CentOS 5
RPMforge is a third party RPM repository for Red HatEnterprise Linux or CentOS. here i am going to show how to add the RPMforge repository in Red Hat Enterprise Linux or CentOS 5.
Install yum-priorities
yum install yum-priorities
Plugins are enabled in CentOS 5 by default. To make sure that yum-priorities is enabled. Just type following command to check it:-
vi /etc/yum/pluginconf.d/priorities.conf
Download and install package (i386 – 32bit)
wget http://packages.sw.be/rpmforge-release /rpmforge-release-0.3.6-1.el5.rf.i386.rpm# install the rpmforge yum repo
rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm# clean up after ourselves
rm rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Download and install package (x86_64 – 64bit)
wget http://packages.sw.be/rpmforge-release/ rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm# install the rpmforge yum repo
rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm# clean up after ourselves
rm rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Set priorities
Edit the .repo files in /etc/yum.repos.d/ by adding
priority=N #Note: N is an integer number from 1 to 99
vim /etc/yum.repos.d/CentOS-Base.repo[base], [addons], [updates], [extras] ... priority=1[centosplus],[contrib] ... priority=2vim /etc/yum.repos.d/rpmforge.repo [rpmforge] priority=10
Final step, install DAG GPG key
wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt rpm --import RPM-GPG-KEY.dag.txt rm RPM-GPG-KEY.dag.txt
------------------------------------------------------------------------------------------------------------------------
FEED
SUPPORT US
VISIT COUNTER !!