# RPM Fusion mirror (pkg.shecan.ir)

> Mirror of download1.rpmfusion.org: free and nonfree for Fedora (/free/fedora/, /nonfree/fedora/) and EL (/free/el/, /nonfree/el/), with the release packages.

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

## Limitations

- dnf still verifies the RPM Fusion 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, Fedora (linux)

```sh
sudo dnf install -y https://mirror-rpmfusion.pkg.shecan.ir/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirror-rpmfusion.pkg.shecan.ir/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo sed -i -E 's/^metalink=/#metalink=/; s,^#?baseurl=https?://download1\.rpmfusion\.org/,baseurl=https://mirror-rpmfusion.pkg.shecan.ir/,' /etc/yum.repos.d/rpmfusion-*.repo
sudo dnf makecache
```

Undo / restore the default, Fedora (linux)

```sh
sudo dnf remove -y rpmfusion-free-release rpmfusion-nonfree-release
```

Run, EL (linux) (checked by hand)

```sh
sudo dnf install -y https://mirror-rpmfusion.pkg.shecan.ir/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm
sudo sed -i -E 's/^(mirrorlist|metalink)=/#\1=/; s,^#?baseurl=https?://download1\.rpmfusion\.org/,baseurl=https://mirror-rpmfusion.pkg.shecan.ir/,' /etc/yum.repos.d/rpmfusion-*.repo
sudo dnf makecache
```
