麻烦一下用CentOS各位帮个忙

/etc/yum.repos.d/CentOS-Base.repo
帮忙把这个文件上传下,我不小心删了
谢谢

作者: haolong   发布时间: 2010-12-28


[root@localhost yum.repos.d]# head -n 1 /etc/issue
CentOS release 5.4 (Final)
[root@localhost yum.repos.d]# ls -l CentOS-Base.repo
-rw-r--r-- 1 root root 2245 2009-10-01 CentOS-Base.repo
  1. [root@localhost yum.repos.d]# cat CentOS-Base.repo
  2. # CentOS-Base.repo
  3. #
  4. # The mirror system uses the connecting IP address of the client and the
  5. # update status of each mirror to pick mirrors that are updated to and
  6. # geographically close to the client.  You should use this for CentOS updates
  7. # unless you are manually picking other mirrors.
  8. #
  9. # If the mirrorlist= does not work for you, as a fall back you can try the
  10. # remarked out baseurl= line instead.
  11. #
  12. #

  13. [base]
  14. name=CentOS-$releasever - Base
  15. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  16. #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
  17. gpgcheck=1
  18. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

  19. #released updates
  20. [updates]
  21. name=CentOS-$releasever - Updates
  22. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  23. #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
  24. gpgcheck=1
  25. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

  26. #packages used/produced in the build but not released
  27. [addons]
  28. name=CentOS-$releasever - Addons
  29. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
  30. #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
  31. gpgcheck=1
  32. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

  33. #additional packages that may be useful
  34. [extras]
  35. name=CentOS-$releasever - Extras
  36. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
  37. #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
  38. gpgcheck=1
  39. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

  40. #additional packages that extend functionality of existing packages
  41. [centosplus]
  42. name=CentOS-$releasever - Plus
  43. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
  44. #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
  45. gpgcheck=1
  46. enabled=0
  47. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

  48. #contrib - packages by Centos Users
  49. [contrib]
  50. name=CentOS-$releasever - Contrib
  51. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
  52. #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
  53. gpgcheck=1
  54. enabled=0
  55. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
复制代码

作者: 奶茶dsk   发布时间: 2010-12-28