Posts Tagged ‘redhat to centos’

Update Older RHEL with YUM

I had a running version RHEL 3 WS that had not been updated in a while (more than a year). I found out that it was no longer getting updates from Redhat because the update contract was not renewed. I needed more current software on it to perform software testing. I like to do my updates with YUM which was not available on Redhat EL3, but here is how I got the updates I needed using YUM.

The first problem I encountered was that there is no public repository to update RHEL machines i.e you have to pay for it. I have used CentOS and know that CentOS offers public repositories and they work with RHEL as well. After struggling for some time, I discovered that I was accessing older version of repos through the latest yum, that was not working.  I had to use an older version of yum with RHEL 3, since old repos do not support xml based updating.

Now I have a fully updated system. Here is how I did it.

1) Since I needed a older version of YUM I had to looked all over the web for the needed version, once I found it I saved it so you could find it more easily.

2) Download yum-2.0.8-1.noarch.rpm (for RHEL 3) from

3) Install it using
rpm –i yum-2.0.8-1.noarch.rpm

4) Configure your yum.conf to look like this:


name=CentOS-$releasever – Base

name=Red Hat Linux $releasever – Updates

5) Download the gpg key for CentOS rpm packages from

6) Import the key like this:
rpm –import RPM-GPG-KEY-CentOS-3

7) Run “yum  update”.

You can change the 3 in the conf files to what ever version of RHEL you are using.


Get Adobe Flash player