Centos7更换阿里yum源

1,cd /etc/yum.repo.d

2,mv CentOS-Base.repo CentOS-Base.repo.bak
3,wget http://mirrors.aliyun.com/repo/Centos-7.repo
4,mv Centos-7.repo CentOS-Base.repo
5, yum clean all
6, yum makecache
7,yum update

1 thought on “Centos7更换阿里yum源

发表评论