地址
https://mirror.nyist.edu.cn/centos/
说明
CentOS 软件源
收录架构
x86_64
收录版本
7, 8
使用说明
操作前请做好相应备份
对于 CentOS 8,使用以下命令替换默认的配置
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=https://mirror.centos.org/$contentdir|baseurl=https://mirror.nyist.edu.cn/centos|g' \
-i.bak \
/etc/yum.repos.d/CentOS-Base.repo \
/etc/yum.repos.d/CentOS-Extras.repo \
/etc/yum.repos.d/CentOS-AppStream.repo
对于 CentOS 7,使用以下命令替换默认配置
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=https://mirror.centos.org/centos|baseurl=https://mirror.nyist.edu.cn/centos|g' \
-i.bak \
/etc/yum.repos.d/CentOS-Base.repo
以上命令只替换了默认启用的仓库。替换之后请运行 yum makecache
更新缓存。
相关链接
邮件列表:https://wiki.centos.org/zh/GettingHelp/ListInfo