yum install -y wget && mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup && wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo && yum clean all && yum makecache标签:repo,搞定,CentOS,repos,centos7,Base,yum,&& From: https://www.cnblogs.com/xiaozhang0524/p/17357538.html