LinuxCommandLibrary

pbuilder

builds Debian packages in chroot

TLDR

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

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.

CAVEATS

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

HISTORY

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

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard