You are here
Home > Linux

centos7 更新yum源

mv  CentOS-Base.repo CentOS-Base.repo.bak
wget  http://mirrors.aliyun.com/repo/Centos-7.repo
mv Centos-7.repo CentOS-Base.repo

yum clean all
rm -rf /var/cache/yum
yum makecache
yum update
Top