# Remi mirror (pkg.shecan.ir)

> Mirror of rpms.remirepo.net: /enterprise/<n>/ and /fedora/<n>/ (remi, remi-safe, remi-modular, php<xy> repositories) with the release packages and keys.

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

## Limitations

- dnf still verifies Remi's signatures. On EL, EPEL is needed too (mirror-epel).

## 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 dnf install -y https://mirror-remi.pkg.shecan.ir/enterprise/remi-release-$(rpm -E %rhel).rpm
sudo sed -i -E 's/^mirrorlist=/#mirrorlist=/; s,^#?baseurl=https?://rpms\.remirepo\.net/,baseurl=https://mirror-remi.pkg.shecan.ir/,' /etc/yum.repos.d/remi*.repo
sudo dnf makecache
```

Undo / restore the default (linux)

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