☰ Categories

Linux: Convert Red Hat to Centos – In place upgrade

The following information should allow you to do an in place upgrade of Redhat to Centos
It is safest to upgrade with in the same major version number. (eg RH 5.1 to Centos 5.8 not Centos)
**Do this at your own risk. I am not responsible if you try this and it does not work – nighthawk**

You can choose any repository that you prefer.
If you are doing this to an outdated version then you may need to goto (vault.centos.org)

Log in as root and start a terminal session.

yum clean all

mkdir ~/centos

cd ~/centos/

wget http://mirror.rit.edu/pub/CentOS/5.8/os/i386/RPM-GPG-KEY-CentOS-5

wget http://mirror.rit.edu/centos/5.8/os/i386/CentOS/centos-release-5-8.el5.centos.i386.rpm

wget http://mirror.rit.edu/centos/5.8/os/i386/CentOS/centos-release-notes-5.8-0.i386.rpm

wget http://mirror.rit.edu/centos/5.8/os/i386/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm

wget http://mirror.rit.edu/centos/5.8/os/i386/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm

wget http://mirror.rit.edu/centos/5.8/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm

wget http://mirror.rit.edu/centos/5.8/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

wget http://mirror.rit.edu/centos/5.8/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm

rpm –import RPM-GPG-KEY-CentOS-5

rpm -e –nodeps redhat-release

rpm -e yum-rhn-plugin

rpm -Uvh –force *.rpm

If you receive dependency failures then wget the additional dependencies that are needed

yum upgrade -y