pbuilder

builds Debian packages in chroot

TLDR

Create base tarball
$ pbuilder create
Build package
$ pbuilder build [package.dsc]
Update base tarball
$ pbuilder update
Login to chroot
$ pbuilder login
Build with distribution
$ pbuilder build --distribution [sid] [package.dsc]

SYNOPSIS

pbuilder [command] [options]

DESCRIPTION

pbuilder builds Debian packages in chroot. Clean build environment.The tool ensures reproducible builds. Isolated from host system.

PARAMETERS

create

Create base tarball.
build DSC
Build package from .dsc.
update
Update base tarball.
login
Enter chroot shell.
--distribution DIST
Target distribution.
--basetgz FILE
Base tarball path.

INSTALL

sudo dnf install pbuilder
sudo zypper install pbuilder

CAVEATS

Root required. Debian/Ubuntu specific. Network access configurable.

HISTORY

pbuilder was created for clean Debian package building in isolated chroots.

SEE ALSO

dpkg-buildpackage(1), sbuild(1), cowbuilder(1)