Monthly Archives: June 2026

Cheatsheet: build and install AUR packages in a chroot on Artix Linux

One of my machines was having trouble rebuilding ffmpeg-libfdk_aac recently. It complained about a dependency conflict, even though I had just built it on another machine without issue and the dependencies should have been the same between them. A pinned comment suggests building in a clean chroot, but the linked directions are for Arch Linux and don’t work on Artix Linux due to systemd not being available.

There is a way. Buildpkg, which on Artix is provided by artools-pkg, makes the job fairly simple. Install it:

yay -S artools-pkg

Once that’s done, check out the package you want from AUR:

cd /tmp
git clone https://aur.archlinux.org/ffmpeg-libfdk_aac
cd ffmpeg-libfdk_aac

Build it:

buildpkg -r $(pwd)/chroot

Install it:

makepkg -i