centos 6.9 yum失效

  1. 新闻资讯
  2. 技术百科
公司新闻 案例分享 技术百科 行业动态

centos 6.9 yum失效

来源:奇站网络 浏览量:405 发布日期: 2022-11-07

  1. cd /etc/yum.repos.d/
  2. > CentOS-Base.repo
  3. vi CentOS-Base.repo

粘贴以下内容

  1. # CentOS-Base.repo
  2. #
  3. # The mirror system uses the connecting IP address of the client and the
  4. # update status of each mirror to pick mirrors that are updated to and
  5. # geographically close to the client. You should use this for CentOS updates
  6. # unless you are manually picking other mirrors.
  7. #
  8. # If the mirrorlist= does not work for you, as a fall back you can try the
  9. # remarked out baseurl= line instead.
  10. #
  11. #
  12. [base]
  13. name=CentOS-6.6 - Base
  14. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/os/x86_64/
  15. gpgcheck=1
  16. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  17. [updates]
  18. name=CentOS-6.6 - Updates
  19. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/updates/x86_64/
  20. gpgcheck=1
  21. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  22. [extras]
  23. name=CentOS-6.6 - Extras
  24. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/extras/x86_64/
  25. gpgcheck=1
  26. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  27. [centosplus]
  28. name=CentOS-6.6 - Plus
  29. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/centosplus/x86_64/
  30. gpgcheck=1
  31. enabled=0
  32. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  33. [contrib]
  34. name=CentOS-6.6 - Contrib
  35. baseurl=http://mirrors.aliyun.com/centos-vault/6.6/contrib/x86_64/
  36. gpgcheck=1
  37. enabled=0
  38. gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6

执行

  1. yum clean all
  2. yum makecache
标签:
下一篇

厦门奇站网络科技有限公司

电话:13313868605

QQ:3413772931

地址:厦门软件园三期A02号

网站地图


                    扫一扫加我咨询