Install RPMForge repository on CentOS 6

update: RPMForge / RepoForge is a dead project. Not maintained. Please do not use.

RPMForge One of the most famous repositories in the Linux world. Used to install third-party software on RPM-based distributions. Contains more than 5000 packages.

Install RPMForge repository on CentOS

The steps provided here have been tested on CentOS 6.3 32-bit, but will work on RHEL 6.x / Scientific Linux 6.x.

First, check the operating system version. Next, download the relevant repository. To check the OS version, use the “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 the Rpmforge repository, download the latest rpmforge-release rpm this place.

# wget
[[email protected] ~]# rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

Testing RPMForge repositories

Install the sample package and see if the Rpmforge repository is working.

# 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 the RPMForge repository, go 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

that’s it. have a good day.