---
name: "archbuild"
section: "1"
platform: "linux"
package: "devtools"
version: "1:1.5.3-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/archbuild"
---

# archbuild(1)

a script to build an Arch Linux package inside a clean chroot.

## NAME

archbuild - a script to build an Arch Linux package inside a clean chroot.

## SYNOPSIS

archbuild \[options\] — \[makechrootpkg args\]

## DESCRIPTION

*archbuild* is a script to build an Arch Linux package. archbuild is part of devtools but should only be used via one of the included symlinks:

• extra-x86\_64-build

• gnome-unstable-x86\_64-build

• kde-unstable-x86\_64-build

• multilib-build

• multilib-staging-build

• multilib-testing-build

• staging-x86\_64-build

• testing-x86\_64-build

The symlink used to run it will be inspected by archbuild, to determine which target you want it to use. It will load the available pacman configuration from *reponame-arch.conf* with a fallback to *reponame.conf* from /usr/share/devtools/pacman.conf.d. The makepkg configuration is loaded from *repo-arch.conf* with a fallback to *reponame.conf* from /usr/share/devtools/makepkg.conf.d.

It will also load the bind mount configuration from *mount.d/arch* in /usr/share/devtools. The file format is that each line starting with ro and rw will be used, other lines will be ignored, and the rest of the used line is out/path:in/path preceded by a space as a separator. ro means it is a read-only mount, rw means a read-write mount.

## OPTIONS

- **-h**

  Output command line options.

- **-c**

  Recreate the chroot before building.

- **-r** \<dir\>

  Create chroots in this directory.

## SEE ALSO

[devtools(7)](/devtools/7.md)

## HOMEPAGE

 *\<https://gitlab.archlinux.org/archlinux/devtools\>*

*Please report bugs and feature requests in the issue tracker. Please do your best to provide a reproducible test case for bugs.*
