Convert RHEL 5 to CentOS 5

Recently I was working on a Dell PE1950 at work and decided to get Xen installed, so that I can create some virtual servers for our developers.

Finding out that Xen in Redhat Enterprise Linux is not so easy to download – I cannot find it from any public accessible websites, I decided to use CentOS’s yum repoes to download and install Xen. When I have CentOS yum repo created in /etc/yum.repo.d, I noticed that it cannot work in RHEL – It cannot recognize OS version without some updates of application.

That’s why I tried to convert my RHEL 5.3 to CentOS 5.3. Here are the commands that I used. You can just copy & paste:

rpm -e --nodeps redhat-release
rpm -e --nodeps yum-rhn-plugin
wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
rpm --import RPM-GPG-KEY-CentOS-5
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-notes-5.3-3.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-3.el5.centos.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm

Now the convertion has finished, you can check /etc/redhat-release for an updated information, and the repo’s config directory for more details on current repoes.

Finally, dont forget to enjoy a FREE CentOS yum updating:

yum clean all
yum update

I’m not quite sure if it totally works well. Nevertheless, I’ve succefully had the system updated, the Xen kernel are running smoothly as well. If I faced any issues, I’d create a new post at our redhat/centos support forum.

No related posts.

Tags: , ,


Joseph chen is a system administrator from south China. He has a keen interest in Open Source and system administration solutions.

2 Responses to “Convert RHEL 5 to CentOS 5”

  1. corrupt says:

    I read about it some days ago in another blog and the main things that you mention here are very similar

Leave a Reply

© 2006-2009 Admon Home. All rights reserved.