seasonzone

CentOS系统自带的更新源的速度实在是慢,为了让CentOS6使用速度更快的YUM更新源,可以选择163(网易)的更新源。

1.下载repo文件

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

 

2.备份并替换系统的repo文件

[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost ~]# mv CentOS-Base.repo CentOS-Base.repo.bak
[root@localhost ~]# mv CentOS6-Base-163.repo CentOS-Base.repo

 

3.执行yum源更新

[root@localhost ~]# yum clean all
[root@localhost ~]# yum makecache
[root@localhost ~]# yum update

 

 

come from:https://www.cnblogs.com/BuildingHome/p/4607619.html

分类:

技术点:

相关文章:

  • 2021-08-01
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-07-10
  • 2021-11-27
相关资源
相似解决方案