![如何使用 CentOS Repos 更新 Red Hat Enterprise Linux 5.4](https://linux22.com/image/504434/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20CentOS%20Repos%20%E6%9B%B4%E6%96%B0%20Red%20Hat%20Enterprise%20Linux%205.4.png)
我不再订阅 RHEL,我想更新我的服务器。有人能告诉我如何使用 CentOS Repos 更新 Red Hat Enterprise Linux 5.4 吗?
答案1
好的,我明白了。我创建了一个文件 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
答案2
IIRC,您只需安装适当的centos-release
包,然后运行yum upgrade
(或者yum update
如果您不想淘汰任何东西)。
答案3
转速-超高压http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
使用这个并更新它工作 chkconfig rhnsd off