# Rocky Linux mirror (pkg.shecan.ir)

> Mirror of dl.rockylinux.org/pub/rocky for dnf and yum on Rocky Linux 8, 9 and 10.

- Upstream: dl.rockylinux.org
- Mirror URL: <https://mirror-rocky.pkg.shecan.ir/>
- Clients: dnf, yum
- Service status: <https://pkg.shecan.ir/status.json> (key `rocky`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/rocky/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/rocky.json>
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `rocky`, mirror `shecan`): <https://audit.shecan.ir/#rocky>

## Limitations

- dnf verifies packages with the official Rocky Linux keys. Mirror paths match dl.rockylinux.org/pub/rocky (for example 9/BaseOS/x86_64/os).
- Only current releases are served; older minor releases that Rocky Linux moved to its vault are not.
- For EPEL on Rocky Linux use the EPEL mirror (mirror-epel.pkg.shecan.ir).

## Setup

Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.

### dnf, yum: persistent (user- or system-wide configuration)

Back up first (linux)

```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/[Rr]ocky*.repo /root/yum.repos.d.bak/
```

Run (linux)

```sh
sudo sed -i 's|^mirrorlist=|#mirrorlist=|; s|^#baseurl=http://dl.rockylinux.org/\$contentdir|baseurl=https://mirror-rocky.pkg.shecan.ir|' /etc/yum.repos.d/[Rr]ocky*.repo
```

Run (linux)

```sh
sudo dnf makecache
sudo dnf install -y jq
```

Undo / restore the default (linux)

```sh
sudo cp /root/yum.repos.d.bak/*.repo /etc/yum.repos.d/
```
