centos 7换源

yum install -y wget

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

yum clean all

cd /etc/yum.repos.d/

mkdir bak

mv CentOS* bak

yum makecache

 

posted @ 2023-07-24 18:00  捌玖  阅读(9)  评论(0编辑  收藏  举报