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 a 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 RepoForge (RPMForge) repository on CentOS 5, CentOS 6 and CentOS 7.
Install RepoForge (RPMForge) Repository on CentOS 5, CentOS 6 and CentOS 7
Step 1. First check your operating system version. Then download the relevent repository. To check OS version use “uname -a” command.
[root@idroot ~]# uname -a
Linux server.idroot.net 2.6.32-042stab079.5 #1 SMP Sat Jun 21 00:15:09 MSK 2014 i686 i686 i386 GNU/Linux
Step 2. After check 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
Congratulation’s! You have successfully installed RepoForge (RPMForge) Repository. Thanks for using this tutorial for installting RepoForge repository on CentOS 5/6 and 7 systems.