# AUR mirror (pkg.shecan.ir)

> Read-only mirror of aur.archlinux.org: the RPC API (/rpc/v5/info, /rpc/v5/search), PKGBUILD snapshots (/cgit/aur.git/snapshot/<pkgbase>.tar.gz), raw files (/cgit/aur.git/plain/<file>?h=<pkgbase>) and the package lists (/packages.gz, /packages-meta-v1.json.gz).

- Upstream: aur.archlinux.org
- Mirror URL: <https://mirror-aur.pkg.shecan.ir/rpc/v5/info?arg%5B%5D=yay>
- Clients: pacman, curl
- Service status: <https://pkg.shecan.ir/status.json> (key `aur`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/aur/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/aur.json>

## Limitations

- git clone is not served (git-upload-pack needs POST), so AUR helpers that clone (yay, paru) do not use the mirror. Download the snapshot and run makepkg instead.
- The sources a PKGBUILD downloads come from their own hosts (GitHub, project sites), which are not mirrored. Prebuilt AUR packages are on mirror-chaotic.

## 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: temporary (one command or the current shell; nothing saved)

Example (linux) (checked by hand)

```sh
curl -fsSL https://mirror-aur.pkg.shecan.ir/cgit/aur.git/snapshot/yay.tar.gz | tar xz
cd yay && makepkg -si
```

### curl: temporary (one command or the current shell; nothing saved)

Verify (linux, macos)

```sh
curl -fsSL 'https://mirror-aur.pkg.shecan.ir/rpc/v5/info?arg%5B%5D=yay'
```
