How to Install and Configure RPMforge Repository on CentOS 5.8

Share this Article :

RPMforge repository is a collaboration of Dag, Dries, and other packagers. In this post i will show on how to install and configure RPMforge repository on linux CentOS 5.8 server. This steps has been tested on CentOS 5.8 and may working on CentOS 6.x as well.

1. Download the rpmforge-release package

[[email protected] ~]# wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
--2012-05-15 06:21:51--  http://apt.sw.be/RPM-GPG-KEY.dag.txt
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1672 (1.6K) [text/plain]
Saving to: `RPM-GPG-KEY.dag.txt'

100%[==========================================================>] 1,672       --.-K/s   in 0s

2012-05-15 06:21:53 (46.0 MB/s) - `RPM-GPG-KEY.dag.txt' saved [1672/1672]

2. Import the RPMforge GPG key :

[[email protected] ~]# rpm --import RPM-GPG-KEY.dag.txt

3. Download rpmforge-release :

[[email protected] ~]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

Example :

[[email protected] ~]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
--2012-05-15 06:23:18--  http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Resolving pkgs.repoforge.org... 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm [following]
--2012-05-15 06:23:19--  http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Resolving rpmforge.sw.be... 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm [following]
--2012-05-15 06:23:20--  http://tree.repoforge.org/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Resolving tree.repoforge.org... 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm [following]
--2012-05-15 06:23:21--  http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12680 (12K) [application/x-redhat-package-manager]
Saving to: `rpmforge-release-0.5.2-2.el5.rf.i386.rpm'

100%[==========================================================>] 12,680      12.6K/s   in 1.0s

2012-05-15 06:23:23 (12.6 KB/s) - `rpmforge-release-0.5.2-2.el5.rf.i386.rpm' saved [12680/12680]

4. Verify the rpmforge-release package you have downloaded :

[[email protected] ~]# rpm -K rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpmforge-release-0.5.2-2.el5.rf.i386.rpm: (sha1) dsa sha1 md5 gpg OK

5. Install the rpmforge-release package using this command :

[[email protected] ~]# rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Preparing...                ########################################### [100%]
   1:rpmforge-release       ########################################### [100%]

6. You can start using RPMforge Repository to install, remove and update the package as below :

[[email protected] ~]# yum install package-name -y
[[email protected] ~]# yum remove package-name -y
[[email protected] ~]# yum update package-name -y

Resources :
http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

Leave a Reply