解决华为云CentOS8 yum的404问题
命令:
cd /etc/yum.repos.d tar -zcf bak20220408.tar.gz ./*.repo rm -rf ./*.repo wget -O /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-8-reg.repo 把 CentOS-Base.repo 里 的baseurl所有 $releasever 替换成 8-stream,然后执行 yum clean all && yum makecache
参考:
https://www.cnblogs.com/hanabi-dx/p/15942937.html
https://blog.csdn.net/linzi19900517/article/details/122846919