yum install -y wget
wget -P /etc/yum.repos.d/ wget http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
cd /etc/yum.repos.d/
mkdir bak
mv CentOS* bak
yum makecache
标签:centos,repos,repo,etc,yum,wget,换源 From: https://www.cnblogs.com/biebiejiujiu/p/17577959.html