Sunday 2 June 2013

Install RPMForge Repository on RHEL/CentOS/Scientific Linux 6

RPMForge repository is a collaboration of Dag Wieërs and other packagers.  The RPMforge project maintains 10,000+ third party software packages in the rpm package format for Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL).

RPMforge repository is not a part of RHEL, CentOS or SL but it is designed to work with these operating systems.  This repository is considered to be stable and safe by many in the community.

The complete list of RPMForge packages can be found at http://pkgs.repoforge.org/

How to check RPMforge has enabled on your system

#rpm -qa | grep rpmforge or yum repolist | grep rpmforge to see RPMforge package has enabled or not.

How to install RPMForge

Install the appropriate rpmforge-release package for your distribution from http://repoforge.org/use/ that you can enable the RPMforge repository on your system.

RHEL/CentOS/SL 6 32-Bit
# rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

RHEL/CentOS/SL 6 64-Bit
# rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

Install Dag's gpg key

rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

Disable RPMForge Repository

You can disable accidental updates from the repository by setting enabled = 0 in the repo definition file in /etc/yum.repos.d/rpmforge.repo.

Now you can use yum to install the available packages from the RPMForge Repository, e.g. yum install --enablerepo=rpmforge package_name

Note: cat /proc/version will give you the release as well as processor architecture

4 comments:

  1. Does it mean one has to disable the rpmforge repo each time after installing some application available at rpmforge to prevent accidental updates from this repo?

    ReplyDelete
    Replies
    1. It's better to disable the rpmforge repo and install the package using the command #yum install --enablerepo=rpmforge package_name. Check to see if the package is available or not #yum list --enablerepo=rpmforge package_name, say vlc.

      Delete