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 mainserver.ostechnix.com 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 http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
[[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: mirror-fpt-telecom.fpt.net
 * extras: mirror-fpt-telecom.fpt.net
 * rpmforge: mirror-fpt-telecom.fpt.net
 * updates: ftp.iitm.ac.in
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
================================================================================
Installing:
 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 
Installed:
  htop.i686 0:1.0.2-1.el6.rf                                                    
Complete!

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: http://rpmforge.net/
[rpmforge]
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

that’s it. have a good day.
.

Sidebar