centos7换源

2020-02-01  本文已影响0人  水电梁师傅

阿里云

wget -O /etc/yum.repos.d/CentOS-Base.repo [http://mirrors.aliyun.com/repo/Centos-7.repo](http://mirrors.aliyun.com/repo/Centos-7.repo)

网易云(好评

wget -O /etc/yum.repos.d/CentOS-Base.repo [http://mirrors.163.com/.help/CentOS7-Base-163.repo](http://mirrors.163.com/.help/CentOS7-Base-163.repo)

运行之后

# 清除缓存:
yum clean all 
# 生成缓存
yum makecache
#更新
yum update
上一篇 下一篇

猜你喜欢

热点阅读