1,备份原有yum源
yum -y install yum-utils
yum -y install wget
cd /etc/yum.repos.d/
mkdir repo_bak
mv *.repo repo_bak/
2,配置阿里yum源
wget http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
![](https://img.haomeiwen.com/i15571796/8d88e58ab1674e96.png)
yum -y install yum-utils
yum -y install wget
cd /etc/yum.repos.d/
mkdir repo_bak
mv *.repo repo_bak/
wget http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
本文标题:centos配置阿里yum源
本文链接:https://www.haomeiwen.com/subject/otdekktx.html
网友评论