CentOS8 ISO安装后更换 YUM 源

查看系统版本号

cat /etc/redhat-release

cd /etc/yum.repos.d/

rm -rf ./*.repo

获取相应版本的阿里Yum源

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

获取相应版本的阿里Stream Yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://developer.aliyun.com/mirror/centos-stream

yum clean all

yum makecache

posted @ 2022-10-28 08:39  littlewrong  阅读(101)  评论(0编辑  收藏  举报