Posted on Apr 25, 2012

Howto add the RPMForge repo in Centos 6

This one is a quick one. If you’re looking for a package and you can’t find it in the main CentOS repos, there’s a good chance it’s over in the RPMforge repository. However, adding additional repos like this can be problematic during upgrades as software version can conflict.

Even though you can’t always avoid the problem, you CERTAINLY can try to minimize the potential damage that you can do.

Download the RPM Forge Repository Package

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

Install the RPM Forge Repository

rpm -ivh rpmforge-release-0.5.2-1.el6.rf.x86_64.rpm

You’ll get a warning, but it will proceed based on the flags that you set.

warning: rpmforge-release-0.5.2-1.el6.rf.x86_64.rpm : Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ########################################### [100%]
1:rpmforge-release ########################################### [100%]

Set YUM priorities

Now you need to edit /etc/yum.repos.d/CentOS-Base.repo and add these priorities to the bottoms of each of the following repo sections:

[base]
priority=1

[updates]
priority=1

[extras]
priority=1

Save your changes on this file and edit the rpmforge.repo file. You’ll only need to edit the one repository section.

[rpmforge]
priority=5

Save your changes and you’re finished.

Setting this repo to a higher priority ensures that this repo is only used if the other repos don’t have what you’re looking for. Like Pure-FTPd. :) The above assumes you’re using 64bit Centos 6. if you’re using 32bit today stop and ask yourself why. Then, use the link and substitute the 32 bit links instead.

Install a test package

In this case we don’t see Pure-FTPd in the stock CentOS repos. let’s update yum and then install PureFTPd.

yum update
yum install pure-ftpd

viola! you should see the package install now and you’re pulling this from the newly install RPM Forge repository.

2 Comments

  • [...] Howto add the RPMForge repo in Centos 6 | conrey.orgApr 25, 2012 … Howto add the RPMForge repo in Centos 6 … In this case we don’t see Pure- FTPd in the stock CentOS repos. let’s update yum and then install … [...]

  • Matt says:

    What would happen if I were to add another repository? Like EPEL or ATRPMS? Would I have to change their priorities to 6 and above depending on preferred hierarchy? Also, do I need to prioritise the Oracle repo for VirtualBox on CentOS?


× 3 = twelve