====== Rocky Linux 9 — Mirror Configuration ======
The local mirror covers Rocky Linux 9 (''x86_64'') including BaseOS, AppStream, and extras repositories. Rocky Linux is a community-driven RHEL-compatible distribution and a drop-in replacement for CentOS.
See also: [[mirrors:almalinux|AlmaLinux 9]] — an alternative CentOS replacement with the same package structure.
===== DNF / YUM Repository Configuration =====
Disable the default upstream repos and drop in the local mirror repo file:
# Disable upstream repos
sed -i 's/^enabled=1/enabled=0/' /etc/yum.repos.d/rocky*.repo
# Download and install local mirror repo
curl -o /etc/yum.repos.d/nplab-mirror.repo https://mirror.nplab.bth.se/configs/rocky/rocky9.repo
dnf clean all
dnf makecache
===== Release Reference =====
^ Release ^ Arch ^ Local URL ^ Config File ^
| Rocky Linux 9 | x86_64 | ''https://mirror.nplab.bth.se/rocky/9/'' | [[https://mirror.nplab.bth.se/configs/rocky/rocky9.repo|rocky9.repo]] |
**Download and apply (run as root):**
curl -o /etc/yum.repos.d/nplab-mirror.repo https://mirror.nplab.bth.se/configs/rocky/rocky9.repo
dnf clean all && dnf makecache
===== Mirror Structure =====
/rocky/9/
BaseOS/x86_64/os/ ← base system packages
AppStream/x86_64/os/ ← additional applications
extras/x86_64/os/ ← community extras
===== Notes =====
* TBD