Centos 7 停止维护 YUM修复方法

ZXEB Lv5

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

  • Titre: Centos 7 停止维护 YUM修复方法
  • Auteur: ZXEB
  • Créé à : 2024-07-25 15:29:00
  • Mis à jour à : 2024-07-25 15:29:00
  • Lien: https://zxeb.github.io//posts/云服务器/Centos 7 停止维护 YUM修复方法
  • Licence: Cette œuvre est sous licence CC BY-NC-SA 4.0.
Commentaires
Sur cette page
Centos 7 停止维护 YUM修复方法