How to Install RPMforge yum repository on CentOS 6


Read first: How to Install RPMforge yum repository on CentOS 5

In this tutorial we will learn how to install and add the RPMforge repository into CentOS 6.

Installation:

Follow the simple steps below and the RPMforge repo will be installed in seconds.

1. Check version of Centos

by the following command:

cat /etc/redhat-release

Result:

[root@tutorialspots etc]# cat /etc/redhat-release
CentOS release 6.5 (Final)

2. Verify 32 Bit or 64 Bit:

Verify if your server is 32 bit or 64 bit. Use this tutorialspots.com article to verify if your system is 32-bit or 64-bit.

check version centos

3. Install RPMFORGE:

Verify the latest release of the rpmforge directory here

32 Bit System:

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
rpm -Uhv rpmforge-release-0.5.3-1.el6.rf.i686.rpm

64 Bit System:

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -Uhv rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

Result:

[root@tutorialspots ~]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-rele
ase-0.5.3-1.el6.rf.x86_64.rpm
--2016-04-13 12:34:18--  http://pkgs.repoforge.org/rpmforge-release/rpmforge-rel
ease-0.5.3-1.el6.rf.x86_64.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/el6/en/x86_64/rpmforge/RPMS/rpmforge-rele
ase-0.5.3-1.el6.rf.x86_64.rpm [following]
--2016-04-13 12:34:19--  http://rpmforge.sw.be/redhat/el6/en/x86_64/rpmforge/RPM
S/rpmforge-release-0.5.3-1.el6.rf.x86_64.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/el6/en/x86_64/rpmforge/RPMS/rpmforge-
release-0.5.3-1.el6.rf.x86_64.rpm [following]
--2016-04-13 12:34:19--  http://tree.repoforge.org/redhat/el6/en/x86_64/rpmforge
/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.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/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0
.5.3-1.el6.rf.x86_64.rpm [following]
--2016-04-13 12:34:19--  http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpm
forge-release-0.5.3-1.el6.rf.x86_64.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: 12640 (12K) [application/x-redhat-package-manager]
Saving to: `rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm'

100%[======================================>] 12,640      --.-K/s   in 0s

2016-04-13 12:34:20 (437 MB/s) - `rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm' sa
ved [12640/12640]

[root@tutorialspots ~]# rpm -Uhv rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
warning: rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signatur
e, key ID 6b8d79e6: NOKEY
Preparing...                ########################################### [100%]
   1:rpmforge-release       ########################################### [100%]

This will install a file (rpmforge.repo) in /etc/yum.repos.d and a rpm-gpg key in /etc/pki/rpm-gpg. The rpmforge repo will now be included when installing and updating files using yum.

rpmforge repo location

2 Comments

Leave a Reply