IT评测·应用市场-qidao123.com技术社区

标题: CentOS Stream 10 换清华源(ansible下载方法、ARM) [打印本页]

作者: 水军大提督    时间: 5 天前
标题: CentOS Stream 10 换清华源(ansible下载方法、ARM)
CentOS Stream 10 换清华源(ansible下载方法)

   情况:
体系 CentOS Stream 10
芯片架构 ARM
  第一步:打开repo文件

  1. cp centos.repo centos.repo.bak
  2. vim centos.repo
复制代码
第二步:修改配置文件

以下是堆栈配置文件内容
  1. # centos.repo
  2. [baseos]
  3. name=CentOS Stream $releasever - BaseOS
  4. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/$releasever-stream/BaseOS/$basearch/os
  5. # metalink=https://mirrors.centos.org/metalink?repo=centos-baseos-$stream&arch=$basearch&protocol=https,http
  6. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  7. gpgcheck=1
  8. repo_gpgcheck=0
  9. metadata_expire=6h
  10. countme=1
  11. enabled=1
  12. [baseos-debuginfo]
  13. name=CentOS Stream $releasever - BaseOS - Debug
  14. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/$releasever-stream/BaseOS/$basearch/debug/tree/
  15. # metalink=https://mirrors.centos.org/metalink?repo=centos-baseos-debug-$stream&arch=$basearch&protocol=https,http
  16. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  17. gpgcheck=1
  18. repo_gpgcheck=0
  19. metadata_expire=6h
  20. enabled=0
  21. [baseos-source]
  22. name=CentOS Stream $releasever - BaseOS - Source
  23. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/$releasever-stream/BaseOS/source/tree/
  24. # metalink=https://mirrors.centos.org/metalink?repo=centos-baseos-source-$stream&arch=source&protocol=https,http
  25. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  26. gpgcheck=1
  27. repo_gpgcheck=0
  28. metadata_expire=6h
  29. enabled=0
  30. [appstream]
  31. name=CentOS Stream $releasever - AppStream
  32. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/$releasever-stream/AppStream/$basearch/os
  33. # metalink=https://mirrors.centos.org/metalink?repo=centos-appstream-$stream&arch=$basearch&protocol=https,http
  34. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  35. gpgcheck=1
  36. repo_gpgcheck=0
  37. metadata_expire=6h
  38. countme=1
  39. enabled=1
  40. [appstream-debuginfo]
  41. name=CentOS Stream $releasever - AppStream - Debug
  42. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/$releasever-stream/AppStream/$basearch/debug/tree/
  43. # metalink=https://mirrors.centos.org/metalink?repo=centos-appstream-debug-$stream&arch=$basearch&protocol=https,http
  44. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  45. gpgcheck=1
  46. repo_gpgcheck=0
  47. metadata_expire=6h
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 IT评测·应用市场-qidao123.com技术社区 (https://dis.qidao123.com/) Powered by Discuz! X3.4