yum配置文件所在路径:

/etc/yum.repos.d/

 

163镜像:

CentOS7
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

CentOS6
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

CentOS5
wget http://mirrors.163.com/.help/CentOS5-Base-163.repo

 

阿里云镜像:

CentOS7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

CentOS6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

CentOS5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

 

下载镜像后,yum makecache,就可以使用镜像更新系统。

 

相关文章:

  • 2021-08-25
  • 2021-11-15
  • 2021-07-26
  • 2022-12-23
  • 2021-08-05
  • 2021-10-30
  • 2021-09-02
猜你喜欢
  • 2021-12-15
  • 2021-12-14
  • 2021-07-27
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案