1. 备份本地yum源

    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

  2.获取阿里yum源配置文件

    将 https://mirrors.tuna.tsinghua.edu.cn/help/centos/  中的内容粘贴到 CentOS-Base.repo

  3.更新 cache

    yum clean all

    yum makecache

  4.查看并更新 yum 源

    yum -y update

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2022-01-16
  • 2021-11-23
  • 2021-08-18
猜你喜欢
  • 2021-12-20
  • 2021-09-30
  • 2021-12-05
  • 2021-08-20
  • 2021-10-17
  • 2021-08-25
相关资源
相似解决方案