How To Install RepoForge (RPMForge) Repository on CentOS 5, CentOS 6 and CentOS 7

Install RepoForge (RPMForge) Repository on CentOS 5, CentOS 6 and CentOS 7

In this tutorial, we will show you how to install the RepoForge Repository on CentOS 5, CentOS 6 and CentOS 7. For those of you who didn’t know, RPMforge repository is a utility that is used to install third-party software packages under Red Hat Enterprise Linux (RHEL) and Community ENTerprise Operating System (CentOS) and Scientific Linux. It provides more than 5000 software packages in the rpm format for these Linux distributions. If you are an RHEL or CentOS user, I strongly suggest you set up Repoforge repository on your system, as it contains many useful software packages that are not available in existing stock repositories.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation and enable the RepoForge (RPMForge) repository on CentOS system.

Install RepoForge (RPMForge) Repository on CentOS 5, CentOS 6 and CentOS 7

Step 1. First, check your operating system version. Then download the relevant repository. To check OS version use “uname -a” command.

[root@idroot ~]# uname -a
Linux server.idroot.us 2.6.32-042stab079.5 #1 SMP Sat Jun 21 00:15:09 MSK 2014 i686 i686 i386 GNU/Linux

Step 2. Installing RepoForge (RPMForge) Repository on CentOS 5, CentOS 6 and CentOS 7

After checking your operating system version, you need to enable RepoForge repository on your system. You don’t need to configure this repository manually in your yum. Instead, download the following package and install it, which will enable the RepoForge repository on your system.

  • CentOS 7 64 Bit
## RHEL/CentOS 7 64-Bit ##

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
  • CentOS 6 64 Bit
## RHEL/CentOS 6 64 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  • CentOS 6 32 Bit
## RHEL/CentOS 6 32 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.i686.rpm
  • CentOS 5 64 Bit
## RHEL/CentOS 5 64 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
  • CentOS 5 32 Bit
## RHEL/CentOS 5 32 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm

Step 3. Importing RPMForge Repository Key.

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.

# wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
# rpm --import RPM-GPG-KEY.dag.txt

To verify that RPMForge repository has been set up successfully, run the following command to list all available repositories on your system:

# yum repolist

Step 4. Disabling the RPMForge Repository once it is installed.

To disable RPMForge repository navigate to /etc/yum.repos.d/, open the rpmforge.repo file and set enabled=0.

### Name: RPMforge RPM Repository for RHEL 6 - dag
### URL: http://rpmforge.net/
name = RHEL $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

Congratulations! You have successfully installed RepoForge on CentOS system. Thanks for using this tutorial for installing RepoForge on CentOS 7 systems. For additional help or useful information, we recommend you to check the official RepoForge website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!




r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button