LinuxCommandLibrary

sbuild

Build a Debian binary package in a clean `chroot` environment.

TLDR

Build the package in the current directory

$ sbuild
copy


Build the given package
$ sbuild [package]
copy


Build for a certain distribution
$ sbuild --dist [distribution]
copy


Build using custom dependencies (if a directory is passed, all files ending with .deb are used)
$ sbuild --extra-package [path/to/file_or_directory]
copy


Run a shell in case of build failure to further investigate
$ sbuild --build-failed-commands=%SBUILD_SHELL
copy


Cross build for a certain architecture
$ sbuild --host [architecture]
copy


Build for the given native architecture
$ sbuild --arch [architecture]
copy

Copied to clipboard