debuild: command not found

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.

If you encounter the below error while running the command debuild:

debuild: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install devscripts
Ubuntu apt-get install devscripts
Kali Linux apt-get install devscripts
Fedora dnf install devscripts
Raspbian apt-get install devscripts

debuild Command Examples in Linux

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