Centos 7 停止维护 YUM修复方法

Centos 7 停止维护 YUM修复方法
本文章转载自载墨博客
Centos7已经正式停止维护,但我的项目几乎都是基于Centos7来部署的,在执行 yum
指令的时候会报错
然后解决方法就是直接运行下面这个指令
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all && yum makecache
- Title: Centos 7 停止维护 YUM修复方法
- Author: ZXEB
- Created at : 2024-07-25 23:29:00
- Updated at : 2024-07-25 23:29:00
- Link: https://blog.xp6.top//posts/云服务器/Centos-7-停止维护-YUM修复方法
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments