cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
mv CentOS-Epel.repo CentOS-Epel.repo.backup
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
mv CentOS-Epel.repo CentOS-Epel.repo.backup
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
本文标题:更换centos的yum源为阿里源
本文链接:https://www.haomeiwen.com/subject/rxiqittx.html
网友评论