【linux】yum源配置檔案(服務端)

ringoo_ming發表於2017-03-17

/etc/yum.conf檔案


  1. [main]
  2. cachedir=/var/cache/yum/$basearch/$releasever
  3. keepcache=0
  4. debuglevel=2
  5. logfile=/var/log/yum.log
  6. exactarch=1
  7. retries=6
  8. obsoletes=1
  9. gpgcheck=0
  10. plugins=1
  11. installonly_limit=5
  12. bugtracker_url=
  13. p?category=yum
  14. distroverpkg=centos-release
  15. # This is the default, if you make this bigger yum won't see if the metadata
  16. # is newer on the remote and so you'll "gain" the bandwidth of not having to
  17. # download the new metadata and "pay" for it by yum not having correct
  18. # information.
  19. # It is esp. important, to have correct metadata, for distributions like
  20. # Fedora which don't keep old packages around. If you don't like this checking
  21. # interupting your command line usage, it's much better to have something
  22. # manually check the metadata once an hour (yum-updatesd will do this).
  23. # metadata_expire=90m
  24. # PUT YOUR REPOS HERE OR IN separate files named file.repo
  25. # in /etc/yum.repos.d

/etc/yum.repos.d/yum.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=
  15. #mirrorlist=
  16. gpgcheck=1
  17. gpgkey=
  18. #released updates
  19. [updates]
  20. name=CentOS-$releasever - Updates - 163.com
  21. baseurl=
  22. #mirrorlist=
  23. gpgcheck=1
  24. gpgkey=
  25. #additional packages that may be useful
  26. [extras]
  27. name=CentOS-$releasever - Extras - 163.com
  28. baseurl=
  29. #mirrorlist=
  30. gpgcheck=1
  31. gpgkey=
  32. #additional packages that extend functionality of existing packages
  33. [centosplus]
  34. name=CentOS-$releasever - Plus - 163.com
  35. baseurl=
  36. #mirrorlist=
  37. gpgcheck=1
  38. enabled=0
  39. gpgkey=
  40. #contrib - packages by Centos Users
  41. [contrib]
  42. name=CentOS-$releasever - Contrib - 163.com
  43. baseurl=
  44. #mirrorlist=
  45. gpgcheck=1
  46. enabled=0
  47. gpgkey=

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31442725/viewspace-2135533/,如需轉載,請註明出處,否則將追究法律責任。

相關文章