Linux 更新yum源

cd /etc/yum.repos.d/
rm -f *.repo
curl -sO http://mirrors.aliyun.com/repo/Centos-7.repo
curl -sO http://mirrors.aliyun.com/repo/epel-7.repo
 
yum clean all
 
yum -y install xxx
原文地址:https://www.cnblogs.com/zhanggaofeng/p/13796129.html