CentOS7 yum镜像源

 

 步骤一:安装wget

yum -y install wget

 步骤二:安装阿里镜像源

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

步骤三:运行yum makecache生成缓存

yum makecache

步骤四:更新新yum

yum -y update

  

posted @ 2021-11-25 10:45  非帆丶  阅读(518)  评论(0编辑  收藏  举报