当 CentOS 6 停止其生命周期时,如何在 CentOS 6 中使用 yum 安装或更新软件?

aun*_*low 3 centos yum centos6

这几天我的 CentOS 6 系统安装或更新软件失败。我猜 CentOS 在 CentOS 6 于 11 月 30 日结束其生命周期后删除了他们的镜像列表。

我使用这个镜像列表:

http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
Run Code Online (Sandbox Code Playgroud)

Dan*_*nin 5

考虑到所有关于安全性的事情,并且它已经停产,您仍然可以在 CentOS 6 中使用yum

curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo
Run Code Online (Sandbox Code Playgroud)

或者,手动更新存储库配置。