cd /etc/yum.repos.d

sudo mv CentOS-Base.repo CentOS-Base.repo.bak

sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

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

yum clean all

yum makecache

 其中第四行为了添加阿里EPEL源,可选

相关文章:

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