因为系统中自带的yum源需要系统注册后才能使用,所以可以更改一下yum源,替换为Centos的源

1、更换yum源,将原有源删除或备份到别的地方:                        

    #cd /etc/yum.repos.d/
    #wget  http://mirrors.163.com/.help/CentOS6-Base-163.repo

2、编辑文件,把文件里面的$releasever全部替换为版本号:6 最后保存

#vi CentOS6-Base-163.repo

3、清除原有缓存,重建缓存:

#yum clean all
#yum makecache

4、更新系统:

#yum update

 

相关文章:

  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-05-23
  • 2021-08-07
  • 2022-03-09
  • 2022-01-02
  • 2021-07-23
相关资源
相似解决方案