Log in

No account? Create an account

Mon, Jul. 11th, 2011, 10:21 am
Convert your RHEL6 server to CentOS6

Here's a path to migrate your existing RHEL6 server and convert it in-place to the newly-released CentOS6:

yum clean all
mkdir ~/centos; cd ~/centos
wget http://mirror.centos.org/centos/6.0/os/x86_64/Packages/centos-release-6-0.el6.centos.5.x86_64.rpm
wget http://mirror.centos.org/centos/6.0/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6.0/os/x86_64/Packages/yum-utils-1.1.26-11.el6.noarch.rpm
wget http://mirror.centos.org/centos/6.0/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
rpm --import RPM-GPG-KEY-CentOS-6
rpm -e --nodeps redhat-release-server
rpm -e yum-rhn-plugin rhn-check rhnsd rhn-setup rhn-setup-gnome
rpm -Uhv --force *.rpm
yum upgrade

My out-of-compliance RHEL6 server is now a wonderfully up-to-date CentOS 6 system:

[root@corrino-rhel ~]# uname -a
Linux corrino-rhel 2.6.32-71.7.1.el6.x86_64 #1 SMP Wed Oct 27 03:44:59 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@corrino-rhel ~]# cat /etc/centos-release
CentOS Linux release 6.0 (Final)

Tue, Jul. 19th, 2011 05:36 am (UTC)