CentOS fonte espelho substituição 7

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
yum Limpo Todos
# gerar cache de
yum makecache

 

Acho que você gosta

Origin www.cnblogs.com/greamrod/p/12594688.html
Recomendado
Clasificación