如何使用CentOS Repos更新红帽企业Linux 5.4

我没有订阅RHEL了,我想更新我的服务器。 谁能告诉我如何使用CentOS回购更新红帽企业Linux 5.4?

好吧,我想通了。 我创build了一个文件CentOs.repo(/etc/yum.repos.d/CentOs.repo),内容如下:

[CentOS-Base] name=CentOS-Base mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=os gpgcheck=1 enabled=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 [CentOS-Updates] name=CentOS-Updates mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=updates gpgcheck=1 enabled=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 [CentOS-Plus] name=CentOS-Plus mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=centosplus gpgcheck=1 enabled=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 

IIRC,你只要安装合适的centos-release软件包,然后运行yum upgrade (或者如果你不想过时的话,可以yum update )。