debuild Command Examples in Linux

debuild is a command line tool in Linux that is used to build Debian packages from source code. It is typically used by package maintainers to create binary packages from the source code of a Debian package. debuild is a wrapper script for the dpkg-buildpackage command and provides additional functionality for building packages with different options.

debuild Command Examples

1. Build the package in the current directory:

# debuild

2. Build a binary package only:

# debuild -b

3. Do not run lintian after building the package:

# debuild --no-lintian

4. The typical command line options to build only the binary package(s) without signing the .changes file (or the non-existent .dsc file):

# debuild -i -us -uc -b

Change the -b to -S to build only a source package.

5. An example using lintian to check the resulting packages and passing options to it:

# debuild --lintian-opts -i
Related Post