当前位置: 首页 > news >正文

CentOS Stream 9配置yum源

文章目录

      • 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 # 更新
http://www.jsqmd.com/news/1207894/

相关文章:

  • AI 编码助手写不出一个好框架:为什么“会写代码“和“能做产品“是两回事
  • Slicer项目中以Module结尾的类及其关系
  • 2026 合肥理工招生详解:寿春实验班对标普高,职教高考班专攻对口本科 - 最新资讯
  • 大模型量化技术:原理、工具与实践指南
  • AI文件管理革命:Beacon虚拟文件系统解析
  • 知识产权贯标的作用和意义
  • # 软考软件设计师 · 每日考点推送 整理日期: 2026年7月15日(周三) | 下半年备考倒计时 **101天** | 基础精读第15天
  • 2026年成都全屋整装企业综合实力TOP7测评 - 信息热点
  • 路由策略(前缀列表,策略工具-filter-policy,策略工具-Router-policy,双点双向路由重发布)
  • 野火fireFlasher Mini脱机烧录器与UID加密技术解析
  • 2026广州白云卡地亚钻戒回收,逸程上门鉴定不收取服务费 - 全城热点
  • 2026年度亨得利中国区专属售后服务网络提质升级公告(最新电话及地址) - 亨得利维修保养中心
  • 35+前端开发者必看:收藏这份两年进阶规划,稳步提薪摆脱焦虑
  • 前端图片加载性能优化:从格式选择到懒加载与 CDN 分发的全链路方案
  • 跨平台音乐歌词提取工具:如何打破平台壁垒实现一站式歌词管理?
  • BillaBear 快速入门指南:5分钟内搭建你的第一个订阅计费系统
  • CANN/asc-devkit erfinvf函数文档
  • 聊天链接改单源码系统教程
  • 全志V853开发板硬件概览与开发环境搭建指南
  • 成都无损耗黄金回收店铺实测,拒绝虚高报价套路门店推荐 - 好物测评局
  • 开店,家庭半自动意式咖啡机做意式浓缩要选什么烘焙的咖啡豆? - 咖评官方推荐
  • 一个工具搞定全网音乐下载!Musicdl多平台无损音乐解决方案全解析
  • 戴森球计划工厂蓝图完全指南:从零到星际工厂大师的3步秘籍
  • 小程序毕设选题推荐:基于 SpringBoot 的房地产客户信息管理系统的设计与实现【附源码、mysql、文档、调试+代码讲解+全bao等】
  • .NET与ActiveMQ消息通信实战指南
  • 计算机毕业设计之基于springboot的演唱会票务管理系统的设计与实现
  • cann/asc-devkit uint转bfloat16函数
  • 【KVM】kvm部署
  • Orbit CSS调试技巧:如何使用开发者模式快速定位布局问题
  • 湖北刻度律师事务所电话多少?2026 权威解答 - 资讯在线