CentOS

 

2021-08-24

更换镜像源

  • 备份:cp -r /etc/yum.repos.d /etc/yum.repos.d.backup
  • CnetOS 7:curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
  • CentOS 8:curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo