备份本地源

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

获取阿里源配置文件

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

更新epel仓库

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

更新cache

yum makecache

相关文章:

  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2021-05-15
  • 2021-12-11
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2021-11-15
  • 2021-10-02
  • 2021-09-27
  • 2022-12-23
  • 2021-10-25
  • 2021-05-27
相关资源
相似解决方案