无限星辰工作室-客户无限互联网动力之源

标题: Centos 5 yum无效解决方案 [打印本页]

作者: crx349    时间: 2018-2-10 23:25
标题: Centos 5 yum无效解决方案

编辑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-$releasever - Base - 163.com
  14. #baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
  15. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  16. baseurl=http://vault.centos.org/5.11/os/$basearch/
  17. gpgcheck=1
  18. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  19. #released updates
  20. [updates]
  21. name=CentOS-$releasever - Updates - 163.com
  22. #baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
  23. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  24. baseurl=http://vault.centos.org/5.11/os/$basearch/
  25. gpgcheck=1
  26. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  27. #packages used/produced in the build but not released
  28. [addons]
  29. name=CentOS-$releasever - Addons - 163.com
  30. #baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/
  31. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
  32. baseurl=http://vault.centos.org/5.11/os/$basearch/
  33. gpgcheck=1
  34. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  35. #additional packages that may be useful
  36. [extras]
  37. name=CentOS-$releasever - Extras - 163.com
  38. #baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
  39. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
  40. baseurl=http://vault.centos.org/5.11/updates/$basearch/
  41. gpgcheck=1
  42. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  43. #additional packages that extend functionality of existing packages
  44. [centosplus]
  45. name=CentOS-$releasever - Plus - 163.com
  46. #baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
  47. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
  48. baseurl=http://vault.centos.org/5.11/updates/$basearch/
  49. gpgcheck=1
  50. enabled=0
  51. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  52. #contrib - packages by Centos Users
  53. [contrib]
  54. name=CentOS-$releasever - Contrib - 163.com
  55. #baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
  56. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
  57. baseurl=http://vault.centos.org/5.11/updates/$basearch/
  58. gpgcheck=1
  59. enabled=0
  60. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
复制代码







欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/) Powered by Discuz! X3.4