我们直接使用阿里云
sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
然后我们
清理yum缓存,并生成新的缓存
yum clean all
yum makecache
然后输入
yum repolist
如果显示的源信息和你选择的国内源匹配,说明更换成功。
然后在更新
yum update
我们直接使用阿里云
sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
然后我们
清理yum缓存,并生成新的缓存
yum clean all
yum makecache
然后输入
yum repolist
如果显示的源信息和你选择的国内源匹配,说明更换成功。
然后在更新
yum update