devtools
TLDR
Build a package in a clean chroot
SYNOPSIS
extra-x86_64-build [options]
mkarchroot chroot packages...
arch-nspawn chroot command
DESCRIPTION
devtools is a collection of scripts used by Arch Linux developers and Trusted Users to build packages in clean chroot environments. This ensures packages are built with correct dependencies and don't accidentally include developer system configurations.
The build scripts (extra-x86_64-build, etc.) create isolated chroots matching official repository states, build packages, and verify the results. This guarantees packages work on fresh Arch installations.
Additional tools help with package maintenance: finding dependencies, comparing versions, signing packages, and managing chroots.
BUILD COMMANDS
extra-x86_64-build
Build for extra repository.testing-x86_64-build
Build for testing repository.staging-x86_64-build
Build for staging repository.multilib-build
Build 32-bit multilib packages.
CHROOT COMMANDS
mkarchroot path pkgs
Create a new chroot with specified packages.arch-nspawn chroot cmd
Run command in existing chroot using nspawn.makechrootpkg [options]
Build package in chroot.
PACKAGE TOOLS
signpkg pkg
Sign a package with GPG.checkpkg
Compare package with repository version.find-libdeps pkg
Find shared library dependencies.sogrep repo lib
Search for packages using a library.
CAVEATS
Requires sudo and systemd-nspawn. Initial chroot creation downloads the base system. Disk space needed for chroot (several GB). Build times depend on package complexity. Chroots should be updated before building.
HISTORY
devtools was developed by Arch Linux developers to standardize package building. The scripts evolved from manual processes into automated tools. Using clean chroots became mandatory for official Arch packages to ensure reproducibility. The tools have been refined over years of use by the Arch packaging community.
SEE ALSO
makepkg(8), pacman(8), pkgctl(1), systemd-nspawn(1)


