A small command-line tool for pinning Arch Linux to a specific Arch Linux Archive (ALA) snapshot.
It rewrites /etc/pacman.d/ala-mirrorlist so pacman and paru install
packages from the snapshot date you choose, instead of from the live
repositories. Useful for reproducible installs, reproducing bugs, or staying
on a known-good set of package versions.
- Pin pacman to any ALA snapshot date.
- Accepts natural-language dates (
yesterday,2 days ago,2026/11/11). - Verifies the snapshot exists on
archive.archlinux.orgbefore writing. - Shows the current snapshot and whether it is reachable.
- Lists pending updates as
old -> new(plain text or--json). - Shows Arch news and security advisories published since your snapshot.
- Detects
doas/sudoand prefersparuoverpacman. - Shell completions for bash, zsh, fish, and tcsh.
- Arch Linux (or an Arch-based distribution)
- Python 3.12+
- uv
pacman, and optionallyparusudoordoasfor writing the mirrorlist
ala is Arch-only. Pick whichever channel fits your workflow.
git clone https://github.com/Davenchy/ala-cli.git
cd ala-cli
uv sync
uv run ala --helpInstall the latest main:
uv tool install git+https://github.com/Davenchy/ala-cli.gitPin a release tag:
uv tool install git+https://github.com/Davenchy/ala-cli.git@v0.1.0Or install from a local clone:
git clone https://github.com/Davenchy/ala-cli.git
cd ala-cli
uv tool install .Every v* tag builds a wheel and an sdist and attaches them (plus
SHA256SUMS) to the releases page.
Install the wheel directly:
uv tool install https://github.com/Davenchy/ala-cli/releases/download/v0.1.0/ala_cli-0.1.0-py3-none-any.whlOr download it first:
gh release download v0.1.0 --repo Davenchy/ala-cli --pattern '*.whl'
uv tool install ./ala_cli-0.1.0-py3-none-any.whlGitHub Packages does not provide a PyPI-compatible registry, so Python wheels cannot be published there. The wheel is attached to the GitHub Release instead and is installable with
uv tool install <wheel-url>.
The PKGBUILD builds the package from the tagged source archive:
git clone https://github.com/Davenchy/ala-cli.git
cd ala-cli/packaging/arch
makepkg -siOnce the AUR entry is published, install it with your helper:
yay -S ala-cliBefore publishing to the AUR, regenerate the source checksum from
packaging/arch:
updpkgsums
makepkg --printsrcinfo > .SRCINFOuv tool uninstall ala-cli # uv tool installs
sudo pacman -R ala-cli # PKGBUILD/AUR installsReleases are automated by
.github/workflows/release.yml. Pushing a
v* tag runs lint and tests, builds the wheel and sdist, generates
SHA256SUMS, and publishes a GitHub Release with those files attached.
Cut a release with:
uv version --bump patch
git commit -am "release: v$(uv version --short)"
git tag "v$(uv version --short)"
git push --follow-tagsThe tag must match the version in pyproject.toml, or the workflow fails.
Point your repositories at the ALA mirrorlist in /etc/pacman.conf:
[core]
Include = /etc/pacman.d/ala-mirrorlist
[extra]
Include = /etc/pacman.d/ala-mirrorlist
[multilib]
Include = /etc/pacman.d/ala-mirrorlistThe file contains a single Server line; $repo and $arch are expanded by
pacman, so all three repositories share it:
# Arch Linux Archive snapshot
Server = https://archive.archlinux.org/repos/2026/11/13/$repo/os/$arch/ala current Show the configured snapshot
ala set [date] Set the snapshot (default: yesterday)
ala verify [date] Check that a snapshot is reachable
ala status Snapshot, reachability, alerts, tooling
ala alerts [date] News/security since a snapshot
ala sync Refresh pacman databases
ala updates List pending updates
ala upgrade Full system upgrade
ala completion --bash Print shell completion script
Aliases: current = c/get, set = s, verify = v, status = st,
alerts = a, sync = sy, updates = u/new, upgrade = up.
# Pin to yesterday's snapshot
ala set
# Pin to a specific date
ala set 2026/11/11
# Pin and immediately refresh databases
ala set yesterday --sync
# Check what is currently configured
ala current
ala status
# See announcements that appeared after your snapshot
ala alerts
ala alerts 2026/10/01 --securityala updates --json
ala alerts --json| Code | Meaning |
|---|---|
| 0 | Success (including "no alerts" / "no updates") |
| 1 | Error: invalid input, write failure, or snapshot not reachable in set |
| 10 | ala verify: the snapshot is not reachable |
| 130 | Interrupted with Ctrl-C |
# bash
ala completion --bash > /usr/share/bash-completion/completions/ala
# zsh
ala completion --zsh > "${fpath[1]}/_ala"
# fish
ala completion --fish > ~/.config/fish/completions/ala.fishala set renders a mirrorlist containing one ALA Server URL and writes it to
/etc/pacman.d/ala-mirrorlist through sudo/doas. Every repository that
Includes that file then resolves packages from the same snapshot. All other
logic (status, updates, alerts) only reads local state and public Arch feeds.
- ALA snapshots are frozen. Packages installed from an old snapshot do not receive security fixes until you move the snapshot forward.
- A stale
archlinux-keyringcan cause signature failures when jumping far forward; update the keyring first if pacman complains. - AUR builds (
paru) compile against the installed system, which may be older than what the AUR expects. Prefer repository packages while pinned. - Back up
/etc/pacman.d/ala-mirrorlistif you have custom entries;ala setreplaces the file. ala setwrites to/etc, so it must not be run as a user withoutsudo/doas.
MIT © 2026 Davenchy