更换系统默认yum 源
更换yum源为阿里云yum源
备份系统默认的yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载阿里云yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
添加 epel 源
yum -y install epel-release.noarch
常用的yum源
epel源:https://fedoraproject.org/wiki/EPEL
repoforge源:http://repoforge.org/use/
清理缓存
yum clean all
生成新的缓存
yum makecache
网友评论