1.备份原来的yum文件

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

2.下载阿里云yum配置到    /etc/yum.repos.d/

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

3.更新

yum makecache

yum -y update

           ...等待完成

相关文章:

  • 2021-10-19
  • 2021-10-08
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-11-23
  • 2021-08-18
相关资源
相似解决方案