CentOS7 EOL后配置

更换YUM源

官方YUM源已经关闭,需要更换为国内镜像源

YUM源镜像地址

链接
阿里云 http://mirrors.aliyun.com/repo/Centos-7.repo
清华大学 https://mirrors.tuna.tsinghua.edu.cn/repo/Centos-7.repo
中科大 http://mirrors.ustc.edu.cn/centos/7/os/x86_64/

操作命令

1
2
3
4
5
6
7
#正常安装CentOS7的情况下使用,最小安装需手动下载替换
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#清理YUM缓存并重建缓存
yum clean all
yum makecache
#查看源
yum repolist

CentOS7 EOL后配置
https://www.intx.work/posts/1ee540d4.html
发布于
2024年11月1日
许可协议