4
RockyLinux中文社区的个人空间
source link: https://my.oschina.net/u/4894014/blog/5047182
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在51劳动节当天Rocky Linux发布了,在短短的12天时间内,国内各大高校,纷纷为Rocky Linux提供更新源服务,其中包括:南京大学、上海交通大学、山东大学,目前还有很多其它高校也正在准备当中,相信在不久将有更多源加入其中。
参考链接:https://mirror.rockylinux.org/mirrormanager/mirrors
后续将逐步追加相关国内源信息。
机构 链接 支持类型 带宽 备注 南京大学 mirrors.nju.edu.cn http https rsync 10000 上海交通大学 mirrors.sjtug.sjtu.edu.cn https rsync 1000 山东大学 mirrors.sdu.edu.cn http https 1000使用源方法
这里以替换成上海交通大学源为例:
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.sjtug.sjtu.edu.cn/rocky|g' \
-i.bak \
/etc/yum.repos.d/Rocky-*.repo
# 生成缓存
dnf makecache
恢复官方源:
sed -e 's|^#mirrorlist=|mirrorlist=|g' \
-e 's|^baseurl=https://mirrors.sjtug.sjtu.edu.cn/rocky|#baseurl=http://dl.rockylinux.org/$contentdir|g' \
-i.bak \
/etc/yum.repos.d/Rocky-*.repo
# 生成缓存
dnf makecache
欢迎加入中文社区QQ群:626649599
微信群:rockylinuxcn [群已满,加微信单独拉人]
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK