--build type | Specifies the build type from a comma-separated list of components. | help + man |
-nc, --no-pre-clean | Do not pre-clean source tree (implies --build=binary). | help + man |
--pre-clean | Pre-clean source tree (default behavior). | help + man |
--no-post-clean | Do not clean the source tree after the package has been built. | help + man |
-tc, --post-clean | Clean the source tree (using gain-root-command debian/rules clean) after the package has been built. | help + man |
--sanitize-env | Sanitize the build environment. | help + man |
-D, --check-builddeps | Check build dependencies and conflicts (default behavior). | help + man |
-d, --no-check-builddeps | Do not check build dependencies and conflicts. | help + man |
--ignore-builtin-builddeps | Do not check built-in build dependencies and conflicts. | help + man |
-P, --build-profiles profiles | Assume comma-separated build <profiles> as active. | help |
-R, --rules-file rules | Building a Debian package usually involves invoking debian/rules as a command with several standard parameters. | help + man |
-T, --rules-target target | Call <rules> <target>. | help |
--as-root | Ensure --rules-target calls the target with root rights. | help + man |
--rules-requires-root | Do not honor the Rules-Requires-Root field, falling back to its legacy default value binary-targets. | help + man |
-r, --root-command command | When dpkg-buildpackage needs to execute part of the build process as root, it prefixes the command it executes with gain-root-command if one has been specified. | help + man |
-j, --jobs jobs>|auto | Jobs to run simultaneously in opt-in mode (passed to <rules>), (default behavior). | help |
-J, --jobs-try jobs>|auto | Alias for -j, --jobs. | help |
--jobs-force jobs>|auto | Jobs to run simultaneously in forced mode (passed to <rules>). | help |
--hook- name>=<command | Set <command> as the hook <name>, known hooks: preinit init preclean source build binary buildinfo changes postclean check sign done | help |
--check-command command | Command used to check the .changes file itself and any artifact built referenced in the file. | help + man |
--check-option opt | Pass option opt to the check-command specified with DEB_CHECK_COMMAND or --check-command. | help + man |
--buildinfo-file file | Set the filename for the generated .buildinfo file. | help + man |
--buildinfo-option opt | Pass option <opt> to dpkg-genbuildinfo. | help + man |
--changes-file file | Set the filename for the generated .changes file. | help + man |
--sign-backend backend | Specify an OpenPGP backend interface to use when invoking the sign-command. | help + man |
-p, --sign-command command | When dpkg-buildpackage needs to execute an OpenPGP backend command to sign a source control (.dsc) file, a .buildinfo file or a .changes file it will run sign-command (searching the PATH if… | help + man |
--sign-keyfile file | Specify an OpenPGP key-file containing the secret key to use when signing packages. | help + man |
-k, --sign-keyid keyid | Specify an OpenPGP key-ID (either a fingerprint or a user-ID) for the secret key to use when signing packages. | help + man |
--sign-key keyid | Deprecated since dpkg 1.23.8, replaced by --sign-keyid. | help + man |
-ap, --sign-pause | Add pause before starting signature process. | help |
-us, --unsigned-source | Do not sign the source package. | help + man |
-ui, --unsigned-buildinfo | Do not sign the .buildinfo file. | help + man |
-uc, --unsigned-changes | Do not sign the .buildinfo and .changes files. | help + man |
--no-sign | Do not sign any file, this includes the source package, the .buildinfo file and the .changes file. | help + man |
--force-sign | Force the signing of the resulting files, regardless of -us, --unsigned-source, -ui, --unsigned-buildinfo, -uc, --unsigned-changes or other internal heuristics. | help + man |
--admindir directory | Change the administrative directory. | help + man |
-?, --help | Show the usage message and exit. | help + man |
--version | Show the version and exit. | help + man |
-a, --host-arch arch | Specify the Debian architecture we build for. | help + man |
-t, --host-type type | Specify the GNU system type we build for. | help + man |
--target-arch arch | Specify the Debian architecture the binaries built will build for. | help + man |
--target-type type | Specify the GNU system type the binaries built will build for. | help + man |
-si | Source includes original source, if new upstream (default behavior). | help + man |
-sa | Source includes original source, always. | help + man |
-sd | Source is diff and .dsc only. | help + man |
-v version | Include all changes later than <version>. | help |
-m, --source-by maint | Maintainer for this source or build is <maint>. | help + man |
--build-by maint | Alias for --source-by. | help + man |
-e, --release-by maint | Maintainer for this change or release is <maint>. | help + man |
--changed-by maint | Pass as -e to dpkg-genchanges. | help + man |
-C descfile | Changes are described in <descfile>. | help |
--changes-option opt | Pass option <opt> to dpkg-genchanges. | help + man |
-sn | Force Debian native source format. | help + man |
-s sAkurKUR | See dpkg-source for explanation. | help |
-Z, --compression compressor | Compression to use for source (supported are: bzip2, gzip, lzma, xz). | help + man |
-z, --compression-level level | Compression level to use for source. | help + man |
-i, --diff-ignore regex | Ignore diffs of files matching <regex>. | help |
-I, --tar-ignore pattern | Filter out files when building tarballs. | help |
--source-option opt | Pass option <opt> to dpkg-source. | help + man |
-g | Equivalent to --build=source,all. (in the manual page but not in --help) | man |
-G | Equivalent to --build=source,any. (in the manual page but not in --help) | man |
-b | Equivalent to --build=binary or --build=any,all. (in the manual page but not in --help) | man |
-B | Equivalent to --build=any. (in the manual page but not in --help) | man |
-A | Equivalent to --build=all. (in the manual page but not in --help) | man |
-S | Equivalent to --build=source. (in the manual page but not in --help) | man |
-F | Equivalent to --build=full, --build=source,binary or --build=source,any,all. (in the manual page but not in --help) | man |
-vversion | (in the manual page but not in --help) | man |
-Cchanges-description | (in the manual page but not in --help) | man |
-mmaintainer-address | (in the manual page but not in --help) | man |
-emaintainer-address | Passed unchanged to dpkg-genchanges. (in the manual page but not in --help) | man |
--hook-hook-name hook-command | Set the specified shell code hook-command as the hook hook-name, which will run at the times specified in the run steps. (in the manual page but not in --help) | man |
-ss | (in the manual page but not in --help) | man |
-sA | (in the manual page but not in --help) | man |
-sk | (in the manual page but not in --help) | man |
-su | (in the manual page but not in --help) | man |
-sr | (in the manual page but not in --help) | man |
-sK | (in the manual page but not in --help) | man |
-sU | (in the manual page but not in --help) | man |
-sR | [-i, --diff-ignore[=regex]](#i) (in the manual page but not in --help) | man |