前言
yum repolist 查询镜像源清单
yum clean all 清除镜像源安装包缓存
yum makecache 重新下载缓存镜像源安装包
yum update 更新镜像源安装包缓存
yum upgrade 更新已安装的镜像源软件包
Redhat7镜像源
1 阿里云镜像源
[base]
name=CentOS-7 - Base - mirrors.aliyun.com
baseurl=http://mirrors.aliyun.com/centos/7/os/$basearch/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-7 - Updates - mirrors.aliyun.com
baseurl=http://mirrors.aliyun.com/centos/7/updates/$basearch/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-7 - Extras - mirrors.aliyun.com
baseurl=http://mirrors.aliyun.com/centos/7/extras/$basearch/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-7 - Plus - mirrors.aliyun.com
baseurl=http://mirrors.aliyun.com/centos/7/centosplus/$basearch/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
2 清华大学镜像源
[base]
name=CentOS-7 - Base - tsinghua
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-7 - Updates - tsinghua
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-7 - Extras - tsinghua
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/extras/$basearch/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-7 - Plus - tsinghua
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/centosplus/$basearch/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
3 网易镜像源
[base]
name=base-163
baseurl=http://mirrors.163.com/centos/7/os/x86_64/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=updates-163
baseurl=http://mirrors.163.com/centos/7/os/x86_64/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=extras-163
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=centosplus-163
baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
4 华为镜像源
[base]
name=CentOS-7 - Base - repo.huaweicloud.com
baseurl=https://repo.huaweicloud.com/centos/7/os/$basearch/
gpgcheck=0
enabled=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-7 - Updates - repo.huaweicloud.com
baseurl=https://repo.huaweicloud.com/centos/7/updates/$basearch/
gpgcheck=0
enabled=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-7 - Extras - repo.huaweicloud.com
baseurl=https://repo.huaweicloud.com/centos/7/extras/$basearch/
gpgcheck=0
enabled=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-7 - Plus - repo.huaweicloud.com
baseurl=https://repo.huaweicloud.com/centos/7/centosplus/$basearch/
gpgcheck=0
enabled=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
Redhat8镜像源
1 阿里云镜像源
[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun.com/centos-vault/8.0.1905/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[AppStream]
name=AppStream
baseurl=https://mirrors.aliyun.com/centos-vault/8.0.1905/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[PowerTools]
name=PowerTools
baseurl=https://mirrors.aliyun.com/centos-vault/8.0.1905/PowerTools/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[extras]
name=extras
baseurl=https://mirrors.aliyun.com/centos-vault/8.0.1905/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[centosplus]
name=centosplus
baseurl=https://mirrors.aliyun.com/centos-vault/8.0.1905/centosplus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
===================================================================================
[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun.com/almalinux/8.7/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=https://mirrors.aliyun.com/almalinux/RPM-GPG-KEY-AlmaLinux-8
[AppStream]
name=AppStream
baseurl=https://mirrors.aliyun.com/almalinux/8.7/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=https://mirrors.aliyun.com/almalinux/RPM-GPG-KEY-AlmaLinux-8
[PowerTools]
name=PowerTools
baseurl=https://mirrors.aliyun.com/almalinux/8.7/PowerTools/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=https://mirrors.aliyun.com/almalinux/RPM-GPG-KEY-AlmaLinux-8
[extras]
name=extras
baseurl=https://mirrors.aliyun.com/almalinux/8.7/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=https://mirrors.aliyun.com/almalinux/RPM-GPG-KEY-AlmaLinux-8
[plus]
name=plus
baseurl=https://mirrors.aliyun.com/almalinux/8.7/plus/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=https://mirrors.aliyun.com/almalinux/RPM-GPG-KEY-AlmaLinux-8
2 清华大学镜像源
[BaseOS]
name=BaseOS
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.0.1905/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-Official
[AppStream]
name=AppStream
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.0.1905/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-Official
[PowerTools]
name=PowerTools
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.0.1905/PowerTools/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-Official
[extras]
name=extras
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.0.1905/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-Official
[centosplus]
name=centosplus
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.0.1905/centosplus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-Official
3 网易镜像源
[BaseOS]
name=BaseOS
baseurl=http://mirrors.163.com/centos-vault/8.0.1905/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-Official
[AppStream]
name=AppStream
baseurl=http://mirrors.163.com/centos-vault/8.0.1905/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-Official
[PowerTools]
name=PowerTools
baseurl=http://mirrors.163.com/centos-vault/8.0.1905/PowerTools/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-Official
[extras]
name=extras
baseurl=http://mirrors.163.com/centos-vault/8.0.1905/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-Official
[centosplus]
name=centosplus
baseurl=http://mirrors.163.com/centos-vault/8.0.1905/centosplus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-Official
4 华为镜像源
[BaseOS]
name=BaseOS
baseurl=https://repo.huaweicloud.com/centos-vault/8.0.1905/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-Official
[AppStream]
name=AppStream
baseurl=https://repo.huaweicloud.com/centos-vault/8.0.1905/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-Official
[PowerTools]
name=PowerTools
baseurl=https://repo.huaweicloud.com/centos-vault/8.0.1905/PowerTools/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-Official
[extras]
name=extras
baseurl=https://repo.huaweicloud.com/centos-vault/8.0.1905/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-Official
[centosplus]
name=centosplus
baseurl=https://repo.huaweicloud.com/centos-vault/8.0.1905/centosplus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-Official
5 阿里云Rocky镜像源
[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun.com/rockylinux/8/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-ANOLIS
[AppStream]
name=AppStream
baseurl=https://mirrors.aliyun.com/rockylinux/8/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-ANOLIS
[PowerTools]
name=PowerTools
baseurl=https://mirrors.aliyun.com/rockylinux/8/PowerTools/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-ANOLIS
[Extras]
name=Extras
baseurl=https://mirrors.aliyun.com/rockylinux/8/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-ANOLIS
6 阿里云anolis镜像源
[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun.com/anolis/8/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/anolis/RPM-GPG-KEY-ANOLIS
[AppStream]
name=AppStream
baseurl=https://mirrors.aliyun.com/anolis/8/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/anolis/RPM-GPG-KEY-ANOLIS
[PowerTools]
name=PowerTools
baseurl=https://mirrors.aliyun.com/anolis/8/PowerTools/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/anolis/RPM-GPG-KEY-ANOLIS
Redhat9镜像源
1 阿里云Rocky镜像源
[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun.com/rockylinux/9/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-Rocky-9
[AppStream]
name=AppStream
baseurl=https://mirrors.aliyun.com/rockylinux/9/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-Rocky-9
[extras]
name=extras
baseurl=https://mirrors.aliyun.com/rockylinux/9/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-Rocky-9
[plus]
name=plus
baseurl=https://mirrors.aliyun.com/rockylinux/9/plus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-Rocky-9
2 阿里云AlmaLinux镜像源
[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun.com/almalinux/9/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/almalinux/RPM-GPG-KEY-AlmaLinux-9
[AppStream]
name=AppStream
baseurl=https://mirrors.aliyun.com/almalinux/9/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/almalinux/RPM-GPG-KEY-AlmaLinux-9
[extras]
name=extras
baseurl=https://mirrors.aliyun.com/almalinux/9/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/almalinux/RPM-GPG-KEY-AlmaLinux-9
[plus]
name=plus
baseurl=https://mirrors.aliyun.com/almalinux/9/plus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirrors.aliyun.com/almalinux/RPM-GPG-KEY-AlmaLinux-9
3 Rocky官方镜像源
[BaseOS]
name=BaseOS
baseurl=http://download.rockylinux.org/pub/rocky/9/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://download.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9
[AppStream]
name=AppStream
baseurl=http://download.rockylinux.org/pub/rocky/9/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://download.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9
[extras]
name=extras
baseurl=http://download.rockylinux.org/pub/rocky/9/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://download.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9
[plus]
name=plus
baseurl=http://download.rockylinux.org/pub/rocky/9/plus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://download.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9
4 上海交通大学AlmaLinux镜像源
[BaseOS]
name=BaseOS
baseurl=https://mirror.sjtu.edu.cn/almalinux/9/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirror.sjtu.edu.cn/almalinux/RPM-GPG-KEY-Rocky-9
[AppStream]
name=AppStream
baseurl=https://mirror.sjtu.edu.cn/almalinux/9/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirror.sjtu.edu.cn/almalinux/RPM-GPG-KEY-Rocky-9
[extras]
name=extras
baseurl=https://mirror.sjtu.edu.cn/almalinux/9/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirror.sjtu.edu.cn/almalinux/RPM-GPG-KEY-Rocky-9
[plus]
name=plus
baseurl=https://mirror.sjtu.edu.cn/almalinux/9/plus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=https://mirror.sjtu.edu.cn/almalinux/RPM-GPG-KEY-Rocky-9
5 网易Rocky镜像源
[BaseOS]
name=BaseOS
baseurl=http://mirrors.163.com/rocky/9/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/rocky/RPM-GPG-KEY-Rocky-9
[AppStream]
name=AppStream
baseurl=http://mirrors.163.com/rocky/9/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/rocky/RPM-GPG-KEY-Rocky-9
[extras]
name=extras
baseurl=http://mirrors.163.com/rocky/9/extras/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/rocky/RPM-GPG-KEY-Rocky-9
[plus]
name=plus
baseurl=http://mirrors.163.com/rocky/9/plus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/rocky/RPM-GPG-KEY-Rocky-9
搭建镜像源服务器可以参考这篇博客https://blog.csdn.net/u010080562/article/details/127601935
原文地址:https://blog.csdn.net/u010080562/article/details/127169082
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_31126.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。