CentOS更换源

来自DeerGrove Wiki
跳转至: 导航搜索


  • Centos 7 更换源:
    • 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
    • 下载Repo文件 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    • 完成后执行
      • yum clear all
      • yum makecache