CentOS 7 yum更换国内源:
源地址:
1、阿里镜像站:https://developer.aliyun.com/mirror
2、网易镜像站:http://mirrors.163.com
3、清华镜像站:https://mirrors.tuna.tsinghua.edu.cn
操作方步骤:
1、备份原来的yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载CentOS 7的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
3、下载epel扩展源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
4、清理缓存,生成新缓存
yum clean all
yum makecache