centos7配置阿里云yum源

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

#yum源更新命令
yum clean all
yum makecache
yum update

 

posted @ 2022-01-12 19:06  wiqy  阅读(196)  评论(0编辑  收藏  举报