# BlackArch mirror (pkg.shecan.ir)

> Mirror of the BlackArch repository (www.blackarch.org/blackarch: /blackarch/os/<arch>) for pacman on Arch Linux and derivatives.

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

## Limitations

- pacman still verifies the BlackArch signatures; the four trusted signing keys of strap.sh (KEYRING_SIGNERS) come from keyserver.ubuntu.com through the mirror (instead of strap.sh, which names upstream 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)

Run (linux)

```sh
for k in 8F9A9793CB8591147C2EC70566E0CDBD1E01F333 A0917C4147A37007CB54C1CFD295AA940EFDDF62 4345771566D76038C7FEB43863EC0ADBEA87E4E3 F9A6E68A711354D84A9B91637533BAFE69A25079; do
  curl -fsSL https://mirror-ppa.pkg.shecan.ir/keys/$k.asc | sudo pacman-key --add -
  sudo pacman-key --lsign-key $k
done
printf '\n[blackarch]\nServer = https://mirror-blackarch.pkg.shecan.ir/$repo/os/$arch\n' | sudo tee -a /etc/pacman.conf
sudo pacman -Sy --noconfirm blackarch-keyring
```

Undo / restore the default (linux)

```sh
sudo sed -i '/^\[blackarch\]$/,+1d' /etc/pacman.conf
sudo pacman -Sy
```
