14 October 2011

Using CentOS to update RHEL

If you are ever in this terrible conundrum, I am sorry. I make no promises, either in legality or in functionality. But here is how to shift a RHEL box that won’t update to a CentOS yum repository that will.

Here is how the problem begins:

# yum update subversion
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Skipping security plugin, no data
Setting up Update Process
Could not find update match for svn
No Packages marked for Update

This means what it says. RHEL support has expired. The workaround involves pointing the RHEL server to the CentOS repository.

In the /etc/yum.repos.d/ folder create a new file called CentOS-Base.repo. If you have one already, great. Here is what you need in the file: