备份默认源文件

进入yum.repos.d文件夹

cd /etc/yum.repos.d/

mv CentOS-Base.repo CentOS-Base.repo.backup

下载yum源

  1. 阿里源

    wget //mirrors.aliyun.com/repo/Centos-7.repo

    网易源

    wget //mirrors.163.com/.help/CentOS7-Base-163.repo

更新yum

生成缓存

yum makecache

错误反馈
yum 进程被占用

rm -f /var/run/yum.pid

一直报错,使用的是google的镜像

cd /etc/yum.repos.d/
rm -f google-chrome.repo
Last modification:October 25, 2019
如果觉得我的文章对你有用,请随意赞赏