Getting more from yum with RPMforge and EPEL Repos

RPMforge and EPEL repos can give your CentOS or RHEL install the extra functionality you need. Providing useful packages like git, clusterssh, htop, and thousands more, these are a must-have for anyone who could use some extra packages in yum.

When adding extra repositories, it’s always a good idea to put some protections in place. The plugin ‘yum-protectbase’ can help avoid potential package conflicts that arise when adding 3rd-party repositories.

yum -y install yum-protectbase

Download, install, and import keys from RPMforge & EPEL. (CentOS/RHEL 6, 64-bit)

rpm --import # import keys
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm # verify package integrity
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm # install
# install EPEL
rpm -Uvh

Or for CentOS/RHEL 5…

rpm --import
rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
rpm -Uvh

Then, go through your /etc/yum.repos.d/ directory and edit the repo config files, adding protect=1 to every section of CentOS-Base.repo, and protect=0 to every section of EPEL.repo. The RPMforge repo should already contain the necessary protect=0 statements.

# example
name=Extra Packages for Enterprise Linux 6 - $basearch
mirrorlist=$basearch failovermethod=priority

Your system can now safely use RPMforge and EPEL.

Comment ( 1 )

  1. / ReplyCreating a Steam Trade Bot with Node.js | FirePowered
    […] running CentOS 6, or just want some more information on what we’re doing, you can follow the instructions at my wife’s blog […]

Leave a reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>