Rocky9怎么更换国内源

参考
https://developer.aliyun.com/mirror/rockylinux?spm=a2c6h.13651102.0.0.6bd71b11wxBFJm
更新

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
posted @ 2025-12-26 14:29  minseo  阅读(16)  评论(0)    收藏  举报