CentOS-7配置yum镜像源

  1. 备份原本的yum镜像源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
  1. 下载阿里云yum镜像源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
  1. 清除系统所有的yum缓存
yum clean all
  1. 生成yum缓存
yum makecache
posted @ 2022-01-02 16:08  青橙e  阅读(228)  评论(0编辑  收藏  举报