更换系统源为阿里云源

 

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/[Rr]ocky*.repo

 

更新源

dnf makecache
posted @ 2025-01-17 10:59  羊脂玉净瓶  阅读(7)  评论(0)    收藏  举报