CentOS Stream 10 换清华源(ansible下载方法、ARM)

打印 上一主题 下一主题

主题 1596|帖子 1596|积分 4788

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
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企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

水军大提督

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表