This shared guide is currently available only in Chinese. Use the controls below to select the mirror endpoint and command options.
收录范围
该文件夹提供已经不受支持的 CentOS(不含 CentOS Stream)的历史归档。
使用方法
需要确定您所需要的小版本,如无特殊需要则使用该大版本的最后一个小版本,比如 6.10,5.11,填入下方的文本框。
sudo sed -e "s|^mirrorlist=|#mirrorlist=|g" \
-e "s|^#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=https://mirrors.zju.edu.cn/centos-vault/6.10|g" \
-e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=https://mirrors.zju.edu.cn/centos-vault/6.10|g" \
-i.bak \
/etc/yum.repos.d/CentOS-*.repo注意其中的*通配符,如果只需要替换一些文件中的源,请自行增删。
注意,如果需要启用其中一些 repo,需要将其中的 enabled=0 改为 enabled=1。
最后,更新软件包缓存
sudo yum makecacheGuide content comes from ZJUSCT/mirrorz-docs@de87bf043f31 under CC BY-NC-SA 4.0.