# OpenMandriva mirror (pkg.shecan.ir)

> Mirror of abf-downloads.openmandriva.org (what mirror.openmandriva.org serves): /<release>/repository/<arch>/<section>/<release|updates|testing>/ for rolling (ROME), rock and cooker.

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

## Limitations

- dnf still verifies the OpenMandriva 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 mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/openmandriva-*.repo /root/yum.repos.d.bak/
sudo sed -i -E 's/^mirrorlist=/#mirrorlist=/; s,^#?baseurl=https?://(mirror|abf-downloads)\.openmandriva\.org/,baseurl=https://mirror-openmandriva.pkg.shecan.ir/,' /etc/yum.repos.d/openmandriva-*.repo
sudo dnf makecache
```

Undo / restore the default (linux)

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