Skip to main content

Rocky Software Repository Mirror Usage Guide

info

Some content in this document may have been translated by AI.

Rocky Introduction

Rocky Linux is an open-source enterprise-grade operating system designed to be 100% fully compatible with Red Hat Enterprise Linux®. This mirror repository provides software source mirrors for Rocky Linux. This repository includes versions 8, 9, and 10 for x86_64 and aarch64 architectures.

One-click Usage

Open the terminal and execute the following command to replace the default software source configuration:

Whether is root user
Rocky Linux Version
Rocky Linux 8
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.hust.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 \

After executing the above command to replace, the default enabled repositories will be correctly replaced. After executing the command replacement, please run dnf makecache to update the cache to enable the changes.

References

  1. Rocky Linux - USTC Mirror Help
  2. Homepage - Rocky Linux
Choose your prefered domain
mirrors.hust.edu.cn
This domain is Dual Stack
Enable HTTPS