CentOS7中yum源替换国内阿里的yum源 梁三石 2021-04-26 556 阅读1分钟 1.备份本地的yum源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak 2.下载阿里的yum源配置文件 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 3.更新cache,生成新的缓存 yum makecache 4.查看更新