Because RHEL5.4trial cannot be yum when it expires, it really hurts if it cannot be upgraded due to some security bugs. So I tried to convert RHEL5.4 to CentOS5. First, log on to yumcleanallmkdir ~ /Centoscd ~ /Centos/wgethttp: // developer.centos.org/centos/rpm-gpg-key-centos-5wgethttp
Because RHEL 5.4 trial cannot be yum when it expires, it really hurts if it cannot be upgraded due to some security bugs. So I tried to convert RHEL 5.4 to CentOS 5. First, log on as the root user.
Yum clean all
Mkdir ~ /Centos
Cd ~ /Centos/
Wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Wget http://mirror.centos.org/centos/5.5/ OS /i386/CentOS/centos-release-5-5.el5.centos.i386.rpm
Wget http://mirror.centos.org/centos/5.5/ OS /i386/CentOS/centos-release-notes-5.5-0.i386.rpm
Wget http://mirror.centos.org/centos/5.5/ OS /i386/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
Wget http://mirror.centos.org/centos/5.5/ OS /i386/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
Wget http://mirror.centos.org/centos/5.5/ OS /i386/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm
Rpm -- import RPM-GPG-KEY-CentOS-5
Rpm-e -- nodeps RedHat-release
Rpm-e -- nodeps yum-rhn-plugin
Rpm-Uvh -- force *. rpm
Yum clean all
Rpm -- rebuilddb
Yum update
Restart CentOS 5.5.