91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

linux中yum源配置文件的示例分析

發布時間:2021-10-26 11:18:21 來源:億速云 閱讀:135 作者:小新 欄目:建站服務器

這篇文章將為大家詳細講解有關linux中yum源配置文件的示例分析,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。

/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=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.ph

  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=http://mirrors.163.com/centos/$releasever/os/$basearch/

  15. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

  16. gpgcheck=1

  17. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6


  18. #released updates

  19. [updates]

  20. name=CentOS-$releasever - Updates - 163.com

  21. baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/

  22. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

  23. gpgcheck=1

  24. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6


  25. #additional packages that may be useful

  26. [extras]

  27. name=CentOS-$releasever - Extras - 163.com

  28. baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/

  29. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras

  30. gpgcheck=1

  31. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6


  32. #additional packages that extend functionality of existing packages

  33. [centosplus]

  34. name=CentOS-$releasever - Plus - 163.com

  35. baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/

  36. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus

  37. gpgcheck=1

  38. enabled=0

  39. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6


  40. #contrib - packages by Centos Users

  41. [contrib]

  42. name=CentOS-$releasever - Contrib - 163.com

  43. baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/

  44. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib

  45. gpgcheck=1

  46. enabled=0

  47. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

關于“linux中yum源配置文件的示例分析”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

濮阳市| 日喀则市| 洮南市| 远安县| 巩留县| 平和县| 河南省| 柘城县| 柳江县| 依兰县| 清徐县| 三原县| 安乡县| 弋阳县| 灵寿县| 陇川县| 莒南县| 邛崃市| 青龙| 昔阳县| 荆门市| 晴隆县| 金昌市| 定襄县| 合肥市| 鲁山县| 如皋市| 闽侯县| 洮南市| 嵊泗县| 桦甸市| 济南市| 怀来县| 镇安县| 色达县| 南漳县| 友谊县| 乌苏市| 阳江市| 吴桥县| 会泽县|