How to Enable rpmforge Repository in Rhel/centos 7.x/6.x/5.x

Source: Internet
Author: User
Tags gpg

Rpmforge Repository is a utility that's used to install third party software packages under Red Hat Enterprise Linux (RHE L) and Community ENTerprise Operating System (CentOS). It provides more than software packages in the RPM format for these Linux distributions.

Rpmforge Repository not a part of the RHEL or CentOS but it's designed to work with these operating systems. The complete list of Rpmforge packages can is fount at

Install Rpmforge Repository in RedHat and Centos

Read Also:install and Enable EPEL Repository in Rhel/centos 7/6/5

This article gives your a steps to install and enable Rpmforge repository under Rhel/centos 7, 6, 5, 4 systems.

Verifying Rhel/centos is the + bit or the System

We Use the "uname-a" command to verify a system, the whether it is the + bit or the.

The-the-bit system would show i686 i686 i386 gnu/linux and a-bit server shows x86_64 x86_64 x86_64 gnu/linux.

So, it's very easy-to-verify whether a system is a-or-a-bit using "uname-a" command from the command line shell.

-Bit Rhel/centos
# uname-rlinux 2.6.32-279.5.2.el6.i686 #1 SMP Thu 22:16:48 UTC + i686 i686 i386 gnu/linux
+ Bit Rhel/centos
# uname-rlinux 2.6.32-279.5.2.el6.i686 #1 SMP Thu 22:16:48 UTC + x86_64 x86_64 x86_64 gnu/linux
Installing Rpmforge Repository in Rhel/centos 6/5/4

Download and Install rpmforge repository by selecting appropriate RPM package for your system.

For Rhel/centos 7 Bit
# wget RPM-UVH rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
For Rhel/centos 6 32-64 Bit
# # Rhel/centos 6-Bit OS # # wget RPM-UVH rpmforge-release-0.5.2-2.el6.rf.i686.rpm## Rhel/centos 6 Bit OS # # wget 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
For Rhel/centos 5 32-64 Bit
# # Rhel/centos 5-Bit OS # # wget RPM-UVH rpmforge-release-0.5.2-2.el5.rf.i386.rpm## Rhel/centos 5 Bit OS # # wget 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
For Rhel/centos 4 32-64 Bit
# # Rhel/centos 4-Bit OS # # wget RPM-UVH rpmforge-release-0.5.2-2.el4.rf.i386.rpm## Rhel/centos 4 Bit OS # # wget rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm# RPM-UVH rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm

Note:the Rpmforge repository would be installed Under/etc/yum.repod directory as a file Rpmforge.repo.

Importing Rpmforge Repository Key in Rhel/centos 7/6/5/4

Next, you'll need to download and install DAG's GPG key for your system.

# wget rpm--import rpm-gpg-key.dag.txt

Note:the imported GPG key stored under/etc/pki/rpm-gpg directory as a file Rpm-gpg-key-rpmforge-dag.

Installing Packages using Rpmforge Repository in Rhel/centos 7/6/5/4

Let ' s try installing something using Rpmforge repository.

# Yum--enablerepo=rpmforge Install ARIA2
Sample Output:
 Loaded plugins:fastestmirror, refresh-packagekitloading mirror speeds from cached hostfilerpmforge Setti ng up Install processdependencies resolved======================================================================== =========================package archversion Repository size=================                           ================================================================================installing:aria2 i686 1.15.1-1.EL6.RF rpmforge 1.2 minstalling for Dependencies:nettle I 686 2.2-1.el6.rf Rpmforge 359 ktransaction summary============================================ =====================================================install 2 Package (s) 

So, whenever a new packages is install using Yum command the Rpmforge repository would be included.

Disable rpmforge Repository in Rhel/centos 7/6/5/4

To disable Rpmforge repository simply open the File/etc/yum.repos.d/rpmforge.repo.

# Vi/etc/yum.repos.d/rpmforge.repo

Change "enabled=1" to "enabled=0". 0 means turn-off and 1 means turn-on.

# # Name:rpmforge RPM Repository for RHEL 6-dag### url:[rpmforge]name = Rhel $releasever-rpmforg =$basearch/rpmforgemirrorlist = Mirrors-rpmforge#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforgeenabled = 0protect = 0gpgkey = file:///etc/pki/ Rpm-gpg/rpm-gpg-key-rpmforge-daggpgcheck = 1

How to Enable rpmforge Repository in Rhel/centos 7.x/6.x/5.x

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.