Add the RPMForge custom repository to CentOS

The RPMForge custom repository has a lot of useful software applications for CentOS and Red Hat Enterprise Linux which aren’t included in the default repositories. This post looks at how to enable it.

First of all go to http://dag.wieers.com/rpm/packages/rpmforge-release/ to work out which package you need to install. It has RPM packages for Red Hat Enteprise Linux 2.1 and up, Red Hat 7 to 9, and Fedora 1 to 3. If you’re running a CentOS box you want the Red Hat Enterprise Linux ones.

For example, if you want to install onto a CentOS 5.1 machine running the 32 bit version you want the Red Hat EL 5 – i386 rpm which you could download like so:

wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Now install it using rpm –install, substituting the filename below with the actual file you downloaded:

sudo rpm --install rpmforge-release-0.3.6-1.el5.rf.i386.rpm

If it installs successfully you won’t see any messages. You’ll just get the command line back again. The next time you go to install something with YUM the list of packages from rpmforge will be included.