# CachyOS mirror (pkg.shecan.ir)

> Mirror of mirror.cachyos.org/repo: /<arch>/<repo> for x86_64, x86_64_v3, x86_64_v4 and znver4 (cachyos, cachyos-v3, cachyos-core-v3, cachyos-extra-v3, cachyos-v4, cachyos-znver4, ...).

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

## Limitations

- pacman still verifies the CachyOS 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.

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

Run (linux)

```sh
sudo mkdir -p /root/pacman.d.bak && sudo cp /etc/pacman.d/cachyos*-mirrorlist /root/pacman.d.bak/
sudo sed -i -E 's#^Server = .*/repo/#Server = https://mirror-cachyos.pkg.shecan.ir/repo/#' /etc/pacman.d/cachyos*-mirrorlist
sudo pacman -Syy
```

Undo / restore the default (linux)

```sh
sudo cp /root/pacman.d.bak/cachyos*-mirrorlist /etc/pacman.d/
```
