尧图网站建设 尧图网络
  • 首页
  • 关于我们
  • 服务项目
  • 案例展示
  • 建站流程
  • 资讯中心
  • 联系我们
首页/资讯中心/详情

CentOS Stream 9配置yum源

CentOS Stream 9配置yum源
📅 发布时间:2026/7/17 17:24:10

文章目录

      • Red Hat 9 && CentOS Stream 9 配置阿里云yum 源
        • CentOS Stream 9 配置阿里云 yum 源
        • Red Hat 9 配置阿里云 yum 源

Red Hat 9 && CentOS Stream 9 配置阿里云yum 源

CentOS Stream 9 配置阿里云 yum 源

备份原有的 yum文件

[root@localhost ~]# cd /etc/yum.repos.d/[root@localhost yum.repos.d]# lscentos-addons.repo centos.repo[root@localhost yum.repos.d]# mkdir bak[root@localhost yum.repos.d]# cp -r *.repo bak/

配置阿里 yum 源

[root@localhost yum.repos.d]# pwd/etc/yum.repos.d[root@localhost yum.repos.d]# vim centos.repo[baseos]name=CentOS Stream$releasever- BaseOSbaseurl=https://mirrors.aliyun.com/centos-stream/$stream/BaseOS/$basearch/os/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6hcountme=1enabled=1[baseos-debug]name=CentOS Stream$releasever- BaseOS - Debugbaseurl=https://mirrors.aliyun.com/centos-stream/$stream/BaseOS/$basearch/debug/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[baseos-source]name=CentOS Stream$releasever- BaseOS - Sourcebaseurl=https://mirrors.aliyun.com/centos-stream/$stream/BaseOS/source/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[appstream]name=CentOS Stream$releasever- AppStreambaseurl=https://mirrors.aliyun.com/centos-stream/$stream/AppStream/$basearch/os/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6hcountme=1enabled=1[appstream-debug]name=CentOS Stream$releasever- AppStream - Debugbaseurl=https://mirrors.aliyun.com/centos-stream/$stream/AppStream/$basearch/debug/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[appstream-source]name=CentOS Stream$releasever- AppStream - Sourcebaseurl=https://mirrors.aliyun.com/centos-stream/$stream/AppStream/$basearch/debug/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[crb]name=CentOS Stream$releasever- CRBbaseurl=https://mirrors.aliyun.com/centos-stream/$stream/CRB/$basearch/os/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6hcountme=1enabled=0[crb-debug]name=CentOS Stream$releasever- CRB - Debugbaseurl=https://mirrors.aliyun.com/centos-stream/$stream/CRB/$basearch/debug/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[crb-source]name=CentOS Stream$releasever- CRB - Sourcebaseurl=https://mirrors.aliyun.com/centos-stream/$stream/CRB/source/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0
[root@localhost yum.repos.d]# pwd/etc/yum.repos.d[root@localhost yum.repos.d]# vim centos-addons.repo[highavailability]name=CentOS Stream$releasever- HighAvailabilitybaseurl=http://mirrors.aliyun.com/centos-stream/$stream/HighAvailability/$basearch/os/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6hcountme=1enabled=0[highavailability-debug]name=CentOS Stream$releasever- HighAvailability - Debugbaseurl=http://mirrors.aliyun.com/centos-stream/$stream/HighAvailability/$basearch/debug/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[highavailability-source]name=CentOS Stream$releasever- HighAvailability - Sourcebaseurl=http://mirrors.aliyun.com/centos-stream/$stream/HighAvailability/source/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[nfv]name=CentOS Stream$releasever- NFVbaseurl=http://mirrors.aliyun.com/centos-stream/$stream/NFV/$basearch/os/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6hcountme=1enabled=0[nfv-debug]name=CentOS Stream$releasever- NFV - Debugbaseurl=http://mirrors.aliyun.com/centos-stream/$stream/NFV/$basearch/debug/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[nfv-source]name=CentOS Stream$releasever- NFV - Sourcebaseurl=http://mirrors.aliyun.com/centos-stream/$stream/NFV/source/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[rt]name=CentOS Stream$releasever- RTbaseurl=http://mirrors.aliyun.com/centos-stream/$stream/RT/$basearch/os/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6hcountme=1enabled=0[rt-debug]name=CentOS Stream$releasever- RT - Debugbaseurl=http://mirrors.aliyun.com/centos-stream/$stream/RT/$basearch/debug/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[rt-source]name=CentOS Stream$releasever- RT - Sourcebaseurl=http://mirrors.aliyun.com/centos-stream/$stream/RT/source/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[resilientstorage]name=CentOS Stream$releasever- ResilientStoragebaseurl=http://mirrors.aliyun.com/centos-stream/$stream/ResilientStorage/$basearch/os/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6hcountme=1enabled=0[resilientstorage-debug]name=CentOS Stream$releasever- ResilientStorage - Debugbaseurl=http://mirrors.aliyun.com/centos-stream/$stream/ResilientStorage/$basearch/debug/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[resilientstorage-source]name=CentOS Stream$releasever- ResilientStorage - Sourcebaseurl=http://mirrors.aliyun.com/centos-stream/$stream/ResilientStorage/source/tree/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficialgpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0[extras-common]name=CentOS Stream$releasever- Extras packagesbaseurl=http://mirrors.aliyun.com/centos-stream/SIGs/$stream/extras/$basearch/extras-common/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512gpgcheck=1repo_gpgcheck=0metadata_expire=6hcountme=1enabled=1[extras-common-source]name=CentOS Stream$releasever- Extras packages - Sourcebaseurl=http://mirrors.aliyun.com/centos-stream/SIGs/$stream/extras/source/extras-common/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512gpgcheck=1repo_gpgcheck=0metadata_expire=6henabled=0
[root@localhost yum.repos.d]# dnf clean all # 清除缓存21个文件已删除[root@localhost yum.repos.d]#[root@localhost yum.repos.d]# dnf makecache # 建立缓存.......[root@localhost yum.repos.d]# dnf update # 更新

Red Hat 9 配置阿里云 yum 源
[root@localhost ~]# cd /etc/yum.repos.d/[root@localhost yum.repos.d]# vi /etc/yum.repos.d/redhat9.repo[ali_baseos]name=ali_baseosbaseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os/gpgcheck=0[ali_appstream]name=ali_appstreambaseurl=https://mirrors.aliyun.com/centos-stream/9-stream/AppStream/x86_64/os/gpgcheck=0[root@localhost yum.repos.d]# dnf clean all # 清除缓存21个文件已删除[root@localhost yum.repos.d]#[root@localhost yum.repos.d]# dnf makecache # 建立缓存.......[root@localhost yum.repos.d]# dnf update # 更新

相关新闻

  • 2026 郑州金水核心商圈名表回收 TOP 名录|正弘城|兰德中心|大卫城劳力士爱彼线下实体清单 - 逸程奢侈品回收中心
  • 中医学生到国家队队医的成长路径:核心能力与学习规划
  • 大模型量化技术:原理、工具与实践指南

最新新闻

  • autoDocstring安全最佳实践:保护代码文档的3个重要原则
  • WMPageController常见问题解决方案:从基础到高级的10个技巧
  • 从零开始看懂计算机发展史,算盘到晶体管的演变逻辑
  • 乌鲁木齐新疆特产店怎么选?疆礼记新疆特产选购避坑指南 - 百航
  • 劳力士中国官方售后服务中心|官方地址与客服热线权威信息通知(2026年7月更新) - 劳力士服务中心
  • Andersen Consulting新增协作成员机构Smartbridge,进一步拓展咨询服务布局

日新闻

  • 佛山青少年训练营推荐:军博营地实力顶尖 - 秋山寄远
  • 如何快速上手PvZ2 Gardendless:免费Web版植物大战僵尸2完整指南
  • jiuwen-deepsearch核心功能详解:规划-检索-反思三合一智能工作流

周新闻

  • IX9104 PCIe5.0 高速交换芯片@ACP#完整规格 + 应用场景总结
  • Unity游戏集成Coze智能体:实现NPC智能对话与知识库联动
  • SAP EPIC 建行回单查询:从标准类CL_EPIC_EXAMPLE_CN_CCB_GHTD到Z类的5处关键修改

月新闻

  • 2026年6月公司网站搭建最新热门渠道测评:四大低成本/零代码平台对比+避坑
  • 【Linux】Linux arm 编译QT程序,出现expected “}“报错
  • 【MATLAB例程】四基站二维AOA定位与距离辅助增强对比仿真。基于角度观测和测距修正的固定目标平面定位精度分析

关于尧图

  • 公司简介
  • 团队介绍
  • 企业文化
  • 荣誉资质

服务项目

  • 定制开发
  • 电商建站
  • UI 设计
  • 运维服务

快速链接

  • 案例展示
  • 建站流程
  • 常见问题
  • 资讯中心

联系方式

  • 📍北京市朝阳区互联网产业园 A 座 10 层
  • 📞400-888-8888
  • ✉️contact@rkmt.cn
  • 🕐周一至周日 9:00-21:00

© 2024 北京尧图网络科技有限公司 版权所有 | 京 ICP 备 XXXXXXXX 号