centos79换源
以下是CentOS 7.9换源的步骤:
1.备份原有的yum配置文件:
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2.下载新的yum配置文件:
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
3.清除yum缓存:
yum clean all
4.生成新的yum缓存:
yum makecache
完成上述步骤后,即可使用新的yum源。
原文地址: https://www.cveoy.top/t/topic/4dA 著作权归作者所有。请勿转载和采集!