直接使用aliyun方案
执行以下命令备份并替换默认源
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^# baseurl=https://repo.almalinux.org|baseurl=https://mirrors.aliyun.com|g' \
-i.bak \
/etc/yum.repos.d/almalinux*.repo
dnf makecache
引用:https://developer.aliyun.com/mirror/almalinux
Continue…