阿里云文章:CentOS 8 EOL如何切换源?
-
备份所有CentOS源:
cd /etc/yum.repos.d/ ll rename '.repo' '.repo.bak' CentOS*.repo -
下载CentOS源(如果curl不存在或者不好用,手动下载源后上传到/etc/yum.repos.d/目录):
curl -o /etc/yum.repos.d/Centos-vault-8.5.2111.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo curl -o /etc/yum.repos.d/epel-archive-8.repo https://mirrors.aliyun.com/repo/epel-archive-8.repo -
清理缓存并重新创建缓存(根据自己的需要,也可以不清理):
yum clean all && yum makecache
本文介绍了如何在CentOS8达到End of Life(EOL)后,如何将系统源切换到阿里云的CentOS Vault 8.5.2111和EPEL Archive 8的源。首先备份原有的CentOS源文件,然后下载阿里云的Centos-vault-8.5.2111.repo和epel-archive-8.repo到yum.repos.d目录,最后清理缓存并重新创建缓存,确保系统可以正常更新和安装软件。
4619

被折叠的 条评论
为什么被折叠?



