由于centos7于2024年7月1日停止维护导致yum都无法使用了,解决方法就是换源

阿里云Centos镜像源地址:https://mirrors.aliyun.com/repo/

修改/etc/yum.repos.d/Centos-Base.repo文件

1)下载阿里yum源 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

结合自己的Centos版本选择合适的yum源(查看Centos版本命令:cat /etc/Centos-release)

2)清除以前所有的过时的yum缓存

yum clean all

3)重新生成yum缓存

yum makecache

标签: none

添加新评论