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