Install RPMForge repository in CentOS 6

Update: RPMForge/RepoForge is a dead project. It is not maintained. DO NOT USE IT.

RPMForge is one of the best known repository in Linux world. It is used to install third party softwares in RPM based distributions. It contains more than 5000 packages.

Install RPMForge repository in CentOS

The steps provided here are tested in CentOS 6.3 32 bit edition, though it will work on RHEL 6.x/Scientific Linux 6.x too.
First check your operating system version. Then download the relevent repository. To check OS version use “uname -a” command.
# uname -a
Linux 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC 2012 i686 i686 i386 GNU/Linux
To install Rpmforge repository, download the latest rpmforge-release rpm from this location.
# wget
[[email protected] ~]# rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

Test RPMForge Repository

Now let us install a sample package to verify whether Rpmforge repository is working or not.
# yum install htop
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * rpmforge:
 * updates:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package htop.i686 0:1.0.2-1.el6.rf will be installed
--> Finished Dependency Resolution
Dependencies Resolved
 Package       Arch          Version                    Repository         Size
 htop          i686          1.0.2-1.el6.rf             rpmforge           78 k
Transaction Summary
Install       1 Package(s)
Total download size: 78 k
Installed size: 186 k
Is this ok [y/N]: y
Downloading Packages:
htop-1.0.2-1.el6.rf.i686.rpm                             |  78 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : htop-1.0.2-1.el6.rf.i686                                     1/1 
  Verifying  : htop-1.0.2-1.el6.rf.i686                                     1/1 
  htop.i686 0:1.0.2-1.el6.rf                                                    

Disable RPMForge Repository

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:
name = RHEL $releasever - - dag
baseurl =$basearch/rpmforge
mirrorlist =
#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
Thats it. Have a good day.

Leave a Reply

Your email address will not be published. Required fields are marked *