(1)打开终端,备份默认源
(2)更换阿里云镜像源
执行以下命令替换默认源
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.aliyun.com/rockylinux|g' \
-i.bak \
/etc/yum.repos.d/Rocky-*.repo
dnf makecache
标签:Rocky,baseurl,默认,mirrorlist,Linux,rockylinux,镜像
From: https://blog.51cto.com/u_1585654/6459021