1, instale wget , execute o comando: " yum -y install wget ."
2, espelho Ali aberta: https://developer.aliyun.com/mirror/
3. Faça o download do novo CentOS-Base.repo para /etc/yum.repos.d/ .
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo ou curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo |
4, a fonte de imagem de atualização.
# Limpar o cache |