Last updated on January 18, 2021 by Dan Nanni
RepoForge, previously known as RPMforge, maintains a repository of RPM packages for Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux. If you are a RHEL or CentOS user, you may want to set up RepoForge repository on your system, as it contains many useful software packages that are not available in existing stock repositories.
In order to set up RepoForge repository on CentOS, you first need to know two things: (1) the version of your CentOS and (2) the underlying kernel architecture (e.g., 32-bit or 64-bit).
To find out which release version of CentOS you are using:
$ cat /etc/redhat-release
CentOS release 6.3 (Final)
To check whether your system is 32-bit (i.e., i686) or 64-bit (i.e., x86_64) architecture:
$ uname -a
Linux centos.domain 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Next, import the RepoForge RPM repository's official GPG key. That way, you will be able to validate all the RPM packages from the repository using the key.
$ sudo rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
After running the above command, verify that the key has been imported successfully with:
$ yum-config-manager rpmforge | grep gpgkey
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
Without importing the key in this step, you will see the following warning when you attempt to install a RepoForge RPM file later.
warning: /var/tmp/rpm-tmp.rHqPLd: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Now that you know enough about your CentOS system and have imported the official GPG key, let's go ahead and install RepoForge RPM on CentOS.
$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Note that there is no 32-bit version of CentOS 7.
$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm
Once RepoForge is installed on your system, you can verify its status by running:
$ yum repolist
If RepoForge is enabled successfully, you will see
rpmforge shown in the repository list.
In general, it is not a good idea to keep RepoForge enabled as it could potentially cause conflicts with other third-party packages such as EPEL. Instead, it is better to disable RepoForge, and then enable it only when you need to install any package from RepoForge. So let's disable RepoForge for now with the command below:
$ sudo yum-config-manager --disable rpmforge
If successful, the subsequent output should display
Now if you want to install any package from RepoForge repository, use the following command.
$ sudo yum --enablerepo=rpmforge install [package-name]
Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.