cd /etc/yum.repos.d/ mkdir bak mv *.repo bak/ curl https://mirrors.aliyun.com/repo/Centos-7.repo -O yum repolist yum makecache