# Fedora Secondary mirror (pkg.shecan.ir)

> Mirror of dl.fedoraproject.org/pub/fedora-secondary (Fedora for ppc64le and s390x): /releases/<n>/Everything/<arch>/os/ and /updates/<n>/Everything/<arch>/.

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

## Limitations

- x86_64 and aarch64 are on mirror-fedora.

## 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, ppc64le and s390x (linux) (checked by hand)

```sh
sudo sed -i -E 's/^metalink=/#metalink=/; s,^#?baseurl=https?://download\.(example|fedoraproject\.org)/pub/fedora-secondary/,baseurl=https://mirror-fedora-secondary.pkg.shecan.ir/,' /etc/yum.repos.d/fedora*.repo
sudo dnf makecache
```

Undo / restore the default, ppc64le and s390x (linux) (checked by hand)

```sh
sudo sed -i -E 's/^#metalink=/metalink=/; s,^baseurl=https://mirror-fedora-secondary\.pkg\.shecan\.ir/,#baseurl=http://download.example/pub/fedora-secondary/,' /etc/yum.repos.d/fedora*.repo
```
