Saturday, May 1, 2010

Convert your RHEL to CentOS

Hi guys,

Of late i had a few problems with Red hat enterprise Linux. I had used CentOS earlier and i liked it a lot. So i decided to get CentOS installed instead of the RHEL. But then i did not want to format my computer . I tried out a method which atleast worked pretty well for me. You dont have to format your box. Just do the following steps and convert your RHEL to CentOS.

Start by issuing this command at your terminal

cat /etc/redhat-release
The output would be redhat enterprise linux blah blah .....

now

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

You could also download the files from mirrors.centos.org and then do a rpm -ivh file.rpm

Once you do this just fire the following command from your terminal

cat /etc/redhat-release

and it should say that your OS is CentOS..

Happy CentOSing niggas :-)

No comments:

Post a Comment