因为 RHEL 5.4 trial 到期不能 yum,一些安全 BUG 看着不能升级真的感到很疼。于是试着将 RHEL 5.4 转换为 CentOS 5。首先用 root 登录
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
重启一下,应该就是 CentOS 5.5 咯。