The AUR
archix replaces yay and paru. It searches and installs from the official repos, your third-party repos and the AUR, with the flags you already know. The difference is what happens around the install: the package is added to your config, its build recipe is shown to you and locked by commit, and it’s built in a clean chroot so the result doesn’t depend on what happens to be installed on your machine.
Install, remove, search
Section titled “Install, remove, search”$ archix search zen browseraur/zen-browser 1.16.3b-1 (+38 2.10) Zen Browser, built from sourceaur/zen-browser-bin 1.16.3b-1 (+412 18.53) Zen Browser, a Firefox-based browser focused on privacy$ sudo archix install zen-browser-bin$ sudo archix remove zen-browser-binThe pacman-style aliases do the same:
| Alias | Same as |
|---|---|
archix -S <pkg> |
archix install <pkg> |
archix -Ss <terms> |
archix search <terms> |
archix -R <pkg> |
archix remove <pkg> |
archix -Syu |
archix upgrade: newest snapshot and AUR recipes, then switch |
archix |
archix -Syu |
archix <terms> |
Search, pick from a numbered list, and install, like yay <terms> |
There’s one packages list for everything. install looks a name up in your configured repos first, official and third-party, and only names they don’t have are looked up in the AUR. A recipe of your own in pkgbuilds/ beats both for a name you declare that it builds under exactly that name; see Local PKGBUILDs and patches.
Search covers the locked snapshot’s repos and the AUR’s package list, with votes, popularity and out-of-date flags. Exact names rank first, then names starting with your first term, then names containing a term, then description matches, and repo packages come before AUR ones. archix zen browser, without search, numbers the results and installs the ones you pick; see archix <terms>. archix downloads that list (packages-meta-v1.json.gz) when it first needs it, refreshes it when it’s more than an hour old and on archix update, and only loads it when a name isn’t in the repos.
Where archix install writes
Section titled “Where archix install writes”archix install doesn’t just install. It declares. The package name goes into lua/hosts/<host>/installed.lua, a plain Lua file archix imports automatically and you can edit too, and then archix switches, so the package is installed when the command returns, with no reboot. The next switch, on this machine or a fresh one, installs it again. If you abort or the switch fails, the file is put back as it was.
To put a package somewhere shared instead, pass a directory under the config’s lua/:
$ sudo archix install --path /etc/archix/lua/modules/dev rust-analyzernote: import "modules.dev.installed" from a module this host loads, or archix won't see itA directory outside lua/ is refused, and nothing is installed.
archix only ever edits installed.lua. It never rewrites your Lua. So archix remove removes packages that archix install (or archix init) added; a package you declared by hand in packages is refused, and stays until you delete it from your file.
You can also skip the command and declare AUR packages in Lua directly, alongside official ones:
return { packages = { "firefox", "zen-browser-bin", "visual-studio-code-bin" },}To try a package without declaring it, install it with plain pacman, or yay for an AUR package. archix snapshots the root before that transaction, and the next switch asks whether to declare it or keep it untracked, as drift says.
How AUR packages are locked
Section titled “How AUR packages are locked”Each AUR package is locked to the git commit of its build recipe, with the version from that commit’s .SRCINFO:
zen-browser-bin = { version = "1.16.3b-1", repo = "aur", file = "zen-browser-bin-1.16.3b-1-x86_64.pkg.tar.zst", base = "zen-browser-bin", commit = "cd6266c6847e61c71facdd7dbf869b5cf64359be", explicit = true }Dependencies the repos can satisfy, versioned ones included, are resolved from the repos at the lock’s snapshot. The rest come from the AUR. An AUR package needed only to build another one is locked with build_only = true: it’s built, and never installed.
AUR dependencies honour version constraints, =, >=, <=, > and <, the way pacman does. A package of that name, or one that provides it, only counts if its version meets the constraint. A wanted version without a pkgrel, such as java-environment>=21, compares against the pkgver alone, and a provide without a version, such as plain java-environment, only meets a dependency without one. A dependency nothing meets stops lock, diff and switch before any build: `java-environment=26` is in none of the configured repos, pkgbuilds/ or the AUR.
VCS packages
Section titled “VCS packages”A VCS package, usually named -git, sets its own version while it builds: its pkgver() asks the source repository. The locked version comes from .SRCINFO and is usually older. archix installs the package at the version the build gave it, and records that version in archix.lock and the generation:
recorded the versions these packages gave themselves while building: archix-git 0.1.0.r35.g76a7920-1The first build also records the commit each git source was cloned at, in the lock’s sources, and a later build of the same lock checks out that commit, so it builds the same version. archix update to a newer snapshot drops it, and the next build takes upstream’s newest commit. Mercurial, Subversion, Bazaar and Fossil sources aren’t pinned; see Limitations.
archix lock and archix switch keep the locked commits. archix update and archix -Syu move AUR packages to the newest commit. See The lockfile.
Build recipe review
Section titled “Build recipe review”AUR packages are code from strangers that runs on your machine. archix shows it to you before it’s trusted, whenever a recipe enters the lock:
- for a new package, every file the recipe ships, the PKGBUILD first and
.SRCINFOlast, so install scripts and patches are in front of you too; - for an update, the git diff since the locked commit,
.SRCINFOincluded.
.SRCINFO matters because archix reads it: the dependencies, sources and PGP keys it locks and builds with come from there, not from running the PKGBUILD.
$ sudo archix install zen-browser-bin==> zen-browser-bin: new AUR package at cd6266c6847e==> PKGBUILD# Maintainer: ...pkgname=zen-browser-bin...==> zen-browser-bin.install...==> .SRCINFO...trust zen-browser-bin at cd6266c6847e and lock it? [Y/n]Answer n and nothing changes: not locking zen-browser-bin; nothing was changed.
The lock also records each AUR package’s maintainer. A package that changed hands since it was locked is named before its diff, since that’s when a malicious recipe is most likely to slip in: ==> zen-browser-bin has a new AUR maintainer, alice -> mallory: read its recipe before you switch. An orphaned package shows as nobody (orphaned). This is printed even with --noconfirm or aur.review = false.
A commit already in the lock is never shown again. You, or whoever committed the lock, already approved it. That’s what lets a second machine install from your lock without asking about every package.
Review happens wherever recipes enter the lock: install, lock, update, upgrade, switch when the config changed, and init. --noconfirm skips it for one command, and aur.review = false turns it off.
Clean chroot builds
Section titled “Clean chroot builds”Every AUR package is built with devtools’ makechrootpkg in a clean chroot at /var/lib/archix/chroot, as the unprivileged archix-build user. The chroot is created with base-devel at the host’s locked snapshot date, running the chroot’s own pacman hooks rather than the running system’s, and moved whenever the lock’s date changes. It’s created again from scratch when devtools changes its chroot format. AUR dependencies are built first and passed in. AUR builds need devtools and git installed.
:: creating the build chroot at the 2026-10-09 snapshot:: building zen-browser-bin 1.16.3b-1 (in a clean chroot)archix downloads the packages the chroot needs itself, with retries, rather than leaving it to pacman inside the chroot, which gives up after one slow connection to the archive. That covers the chroot’s own base-devel when it’s created or moved, and each build’s repo dependencies, including those of the AUR packages the build needs first: they’re resolved against the lock’s snapshot and downloaded into pacman’s cache, /var/cache/pacman/pkg, which devtools shares with the chroot, so makepkg installs them from there.
This fixes two classic AUR problems:
- Missing dependencies. A PKGBUILD that forgot a dependency fails in the chroot instead of quietly building against whatever you have installed.
- Unreproducible builds. The same recipe commit at the same snapshot date builds against the same dependencies, on every machine.
Packages from your config’s own pkgbuilds/ and patches build in the same chroot, the same way, and build_on_host works for them too. They’re never shown for review: the recipe is already in your config.
The chroot only has the official repos. Your third-party repos stay out of it, since they’d also need their signing keys inside.
build_on_host
Section titled “build_on_host”Some packages don’t build in a chroot: they need hardware access, a running service, or files the chroot doesn’t have. List them in aur.build_on_host, and archix builds them with makepkg on the host instead, on the running system: the build dependencies it lacks are installed from the locked snapshot for the build and removed again afterwards. Use it as an escape hatch, not a default: a host build depends on the state of your machine.
aur = { build_on_host = { "some-driver-dkms" } },skip_check
Section titled “skip_check”Some recipes build fine but their own test suite fails against the locked snapshot, say against a newer toolchain than upstream tested with. A failing check() fails the build, and with it the switch. List those package bases in aur.skip_check, and archix builds them with makepkg --nocheck, in the chroot or on the host. It’s paru’s --nocheck, but per package and in the config, so the choice is declared and reviewed like the rest:
aur = { skip_check = { "helm-ls" } },The build cache
Section titled “The build cache”Built packages are cached in /var/cache/archix/pkg, named by recipe commit and snapshot date, so every build of a version keeps its own file. If neither changed, archix reuses the built package instead of building again. Each generation records the sha256 of the file it installed, so rollback puts back that exact file, even when a later build has the same version.
To build once for several machines, push the builds to a package cache with archix cache push, and list it in package_caches on the others. A machine that finds a build of the same recipe commit at the same snapshot there installs it instead of building: :: using zen-browser-bin's build from the package cache at file:///mnt/nas/archix/aur-builds/zen-browser-bin/cd6266c6847e61c71facdd7dbf869b5cf64359be-2026-10-09.json. It has to be the build the lock records, by sha256; until a machine has built it, that build is trusted as the cache’s record says, so list only caches you control. package_cache_push has the building machine fill the cache after every switch. A machine that builds a package itself instead gets the same code in a different file, and says so; aur.require_locked_build refuses that and insists on the recorded build.
A snapshot move rebuilds a package archix built, at the same commit, exactly when a library it links disappears in the switch: when a package the switch changes or removes stops shipping one of the ELF sonames the build needs. Otherwise it keeps the build it has. See Rebuilds at the same version.
When a locked commit can’t be built any more, because it’s gone from the package’s history or the build fails, archix offers the nearest newer version, then the nearest older one, and the lock follows once the version you accepted has built; if it fails too, archix.lock is left unchanged. Set missing_versions or pass --accept-nearest newer|older to decide without asking. See Missing versions. A build that fails while the chroot, the cache or /tmp has less than 1 GiB free is blamed on the disk, not the recipe: the switch stops with /var/lib/archix/chroot has only 19 MiB free, which is likely why the build failed; nothing was changed, and no other version is tried.
How installs run
Section titled “How installs run”archix reads pacman’s local database directly and runs every transaction through the pacman binary, on the running system, in place. It doesn’t reimplement pacman, so hooks, pacman.conf options and the local database behave as you expect.