April 11

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


Copyright 2021. All rights reserved.

Posted April 11, 2012 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B