# Arch Linux mirror (pkg.shecan.ir)

> Mirror of the official Arch Linux repositories (core, extra, multilib) for pacman, x86_64.

- Upstream: geo.mirror.pkgbuild.com
- Mirror URL: <https://mirror-arch.pkg.shecan.ir/>
- Clients: pacman
- Service status: <https://pkg.shecan.ir/status.json> (key `arch`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/arch/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/arch.json>
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `archlinux`, mirror `shecan`): <https://audit.shecan.ir/#archlinux>

## Limitations

- pacman still verifies the official package signatures.
- Only the official repositories, x86_64. Arch Linux ARM, the archive, the AUR (read-only) and the derivatives (Manjaro, EndeavourOS, CachyOS, Chaotic-AUR, BlackArch, Artix) have their own mirrors.

## 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.

### pacman: persistent (user- or system-wide configuration)

Back up first (linux)

```sh
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
```

Run (linux)

```sh
echo 'Server = https://mirror-arch.pkg.shecan.ir/$repo/os/$arch' | sudo tee /etc/pacman.d/mirrorlist
```

Run (linux)

```sh
sudo pacman -Syu --noconfirm
```

Undo / restore the default (linux)

```sh
sudo mv /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist
```
