# ELRepo mirror (pkg.shecan.ir)

> Mirror of elrepo.org: /linux/elrepo/el<n>/, /linux/kernel/el<n>/, /linux/extras/, /linux/testing/ and the key /RPM-GPG-KEY-elrepo.org and release packages at the root.

- Upstream: elrepo.org
- Mirror URL: <https://mirror-elrepo.pkg.shecan.ir/linux/>
- Clients: dnf
- Service status: <https://pkg.shecan.ir/status.json> (key `elrepo`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/elrepo/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/elrepo.json>

## Limitations

- dnf still verifies the ELRepo signatures.

## 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: persistent (user- or system-wide configuration)

Run (linux)

```sh
sudo rpm --import https://mirror-elrepo.pkg.shecan.ir/RPM-GPG-KEY-elrepo.org
sudo dnf install -y https://mirror-elrepo.pkg.shecan.ir/elrepo-release-$(rpm -E %rhel).el$(rpm -E %rhel).elrepo.noarch.rpm
sudo sed -i -E '/^[[:space:]]+https?:\/\//d; s/^mirrorlist=/#mirrorlist=/; s,^#?baseurl=https?://elrepo\.org/,baseurl=https://mirror-elrepo.pkg.shecan.ir/,' /etc/yum.repos.d/elrepo.repo
sudo dnf makecache
```

Undo / restore the default (linux)

```sh
sudo dnf remove -y elrepo-release
```
