In this tutorial we will learn how to install and add the RPMForge repository into CentOS 5. We will also learn how to disable it once it is installed.
1) You need to find which package your distribution do require by going here.
(Note: for CentOS, we need to use the Red Hat Enterprise Linux package, either 32 bits or 64 bits depending on your configuration)
By example, if you wanted to install the 32 bits version you would download the latest version with wget and install it with the rpm tool:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm rpm --install rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Disabling the RPMForge Repository once it is installed:
1) You need to edit the file /etc/yum.repos.d/rpmforge.repo and set the enabled flag to 0 on all instances.
enabled = 0