歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 將 RHEL 5.4 升級為 CentOS 5.5

將 RHEL 5.4 升級為 CentOS 5.5

日期:2017/2/28 16:11:06   编辑:Linux教程

因為 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 咯。

Copyright © Linux教程網 All Rights Reserved