Files
jcutmirror/docs/en/rocky.mdx
2024-05-01 12:30:24 +08:00

52 lines
1.3 KiB
Plaintext

---
mirrorId: rocky
---
## Rocky Linux Repository Usage Help
### Address
[https://mirrors.jcut.edu.cn/rocky/](https://mirrors.jcut.edu.cn/rocky/)
### Description
Rocky Linux software repository mirror.
### Supported Architectures
x86_64, aarch64
### Included Versions
8, 9
---
### Usage Instructions
For Rocky Linux 8, use the following commands to replace the default configuration:
```shell
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.jcut.edu.cn/rocky|g' \
-i.bak \
/etc/yum.repos.d/Rocky-AppStream.repo \
/etc/yum.repos.d/Rocky-BaseOS.repo \
/etc/yum.repos.d/Rocky-Extras.repo \
/etc/yum.repos.d/Rocky-PowerTools.repo
```
For Rocky Linux 9, use the following commands to replace the default configuration:
```shell
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.jcut.edu.cn/rocky|g' \
-i.bak \
/etc/yum.repos.d/rocky-extras.repo \
/etc/yum.repos.d/rocky.repo
```
The above commands only replace the default enabled repositories. After replacing, please run `dnf makecache` to update the cache.
> This document was written with reference to http://mirrors.ustc.edu.cn/help/rocky.html.