从 RHEL 5.x 直接升级为Centos 5.8
直接在命令行执行如下语句即可:
1 yum clean all
2 mkdir /usr/src/centos
3 cd /usr/src/centos
4 wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
5 wget http://mirror.centos.org/centos/5/os/i386/CentOS/centos-release-5-8.el5.centos.i386.rpm
6 wget http://mirror.centos.org/centos/5/os/i386/CentOS/centos-release-notes-5.8-0.i386.rpm
7 wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm
8 wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm
9 wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
10 rpm --import RPM-GPG-KEY-CentOS-5
11 /bin/rpm -e --nodeps redhat-release
12 /bin/rpm -e --nodeps rhn-client-tools
13 /bin/rpm -e --nodeps yum-rhn-plugin
14 rpm -Uvh --force *.rpm
15 yum upgrade
2 mkdir /usr/src/centos
3 cd /usr/src/centos
4 wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
5 wget http://mirror.centos.org/centos/5/os/i386/CentOS/centos-release-5-8.el5.centos.i386.rpm
6 wget http://mirror.centos.org/centos/5/os/i386/CentOS/centos-release-notes-5.8-0.i386.rpm
7 wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm
8 wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm
9 wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
10 rpm --import RPM-GPG-KEY-CentOS-5
11 /bin/rpm -e --nodeps redhat-release
12 /bin/rpm -e --nodeps rhn-client-tools
13 /bin/rpm -e --nodeps yum-rhn-plugin
14 rpm -Uvh --force *.rpm
15 yum upgrade