dpkg-buildpackage(1) dpkg suite dpkg-buildpackage(1) (NAME) dpkg-buildpackage - (SYNOPSIS) dpkg-buildpackage [...] [--] [filename.dsc|directory] (DESCRIPTION) dpkg-buildpackage . filename.dsc directory dpkg 1.22.7 . . : 1. preinit . .dsc directory . ( (ENVIRONMENT) ) init dpkg-source --before-build ( -T --target ). 2. ( -d --no-check-builddeps ). 3. -T --target . preclean fakeroot debian/rules clean ( -nc --no-pre-clean ). 4. source dpkg-source -b ( source --build .dsc ). 5. build debian/rules build-target binary fakeroot debian/rules binary-target ( --build=source ). build-target binary-target build binary ( any all --build ) build-arch binary-arch ( any all --build ) build-indep binary-indep ( all any --build ). 6. buildinfo dpkg-genbuildinfo .buildinfo . dpkg-buildpackage dpkg-genbuildinfo . .dsc .buildinfo . 7. changes dpkg-genchanges .changes . .changes : source-name_binary-version_arch.changes any source-name_binary-version_all.changes all source-name_source-version_source.changes. source dpkg-buildpackage dpkg-genchanges . 8. postclean -tc --post-clean fakeroot debian/rules clean . 9. dpkg-source --after-build . 10. check .changes ( DEB_CHECK_COMMAND --check-command ). 11. sign OpenPGP ( UNRELEASED --no-sign ) .dsc ( -us --unsigned-source ) .buildinfo ( -ui --unsigned-buildinfo -uc --unsigned-changes ) .changes ( -uc --unsigned-changes ) . 12. .dsc . 13. done . (OPTIONS) dpkg-buildpackage . ( ) ( `#' ). --build=type (type) ( dpkg 1.18.5). .changes . dpkg-genchanges . : source . : () dpkg-source clean . any . all . binary . any,all . full . source,any,all . -g --build=source,all ( dpkg 1.17.11). -G --build=source,any ( dpkg 1.17.11). -b --build=binary --build=any,all. -B --build=any. -A --build=all. -S --build=source. -F --build=full --build=source,binary --build=source,any,all ( dpkg 1.15.8). --target=target[,...] --target target[,...] -T, --rules-target=target[,...] debian/rules target ( dpkg-source --before-build) ( dpkg 1.15.0 1.18.8 1.18.16). --as-root ( --root-command ). ( clean binary binary-arch binary-indep). --as-root --target ( dpkg 1.15.0). . -si -sa -sd -vversion -Cchanges-description -mmaintainer-address -emaintainer-address dpkg-genchanges . . --build-by=maintainer-address --source-by=maintainer-address (since dpkg 1.21.10) -m dpkg-genchanges ( dpkg 1.21.10). . --release-by=maintainer-address --changed-by=maintainer-address (since dpkg 1.21.10) -e dpkg-genchanges ( dpkg 1.21.10). . -a, --host-arch architecture ( dpkg 1.17.17). . -t, --host-type gnu-system-type ( dpkg 1.17.17). --host-arch . --target-arch architecture ( dpkg 1.17.17). . --target-type gnu-system-type ( dpkg 1.17.17). --target-arch . -P, --build-profiles=profile[,...] () ( dpkg 1.17.2 1.18.8). . ( ) DEB_BUILD_PROFILES debian/rules . -j, --jobs[=jobs|auto] ( dpkg 1.14.7 1.18.8). auto ( dpkg 1.17.10) jobs . auto ( dpkg 1.18.11) ( dpkg 1.21.10) . 1 () . parallel=jobs parallel DEB_BUILD_OPTIONS debian/rules . jobs parallel=jobs parallel DEB_BUILD_OPTIONS . auto . ( dpkg 1.18.15) . -J, --jobs-try[=jobs|auto] ( dpkg 1.18.2 1.18.8) -j . -j dpkg 1.21.10 (opt-in) dpkg . --jobs-force[=jobs|auto] ( dpkg 1.21.10) --jobs make -j MAKEFLAGS . make ( make(1) ) . : Makefile . make(1) .NOTPARALLEL . -D, --check-builddeps ( dpkg 1.18.8). . -d, --no-check-builddeps ( dpkg 1.18.8). --ignore-builtin-builddeps ( dpkg 1.18.2). Build-Essential. --rules-requires-root Rules-Requires-Root binary-targets ( dpkg 1.19.1). -nc, --no-pre-clean ( dpkg 1.18.8). -F -g -G -B -A -S -b . -S -d ( dpkg 1.18.0). --pre-clean ( dpkg 1.18.8). . -tc, --post-clean ( gain-root-command debian/rules clean) ( dpkg 1.18.8). --no-post-clean ( dpkg 1.19.1). . --sanitize-env () ( dpkg 1.20.0). umask . debian/rules . () . -r, --root-command=gain-root-command dpkg-buildpackage gain-root-command ( dpkg 1.18.8). fakeroot . gain-root-command PATH . gain-root-command ( ) (metacharacters) . gain-root-command fakeroot sudo super really . su -c . -R, --rules-file=rules-file debian/rules ( dpkg 1.14.17 1.18.8). ( ). make ( /usr/local/bin/make -f debian/rules rules-file). --check-command=check-command .changes ( dpkg 1.17.6). .changes . lintian . --check-option=opt opt check-command DEB_CHECK_COMMAND --check-command ( dpkg 1.17.6). . --hook-hook-name=hook-command hook-command hook-name ( dpkg 1.17.6). ( binary). . ( dpkg 1.22.0). DPKG_BUILDPACKAGE_HOOK_NAME ( dpkg 1.22.0). : . hook-name : preinit init preclean source DPKG_BUILDPACKAGE_HOOK_SOURCE_OPTIONS dpkg-source . build DPKG_BUILDPACKAGE_HOOK_BUILD_TARGET debian/rules . dpkg 1.22.7 . binary DPKG_BUILDPACKAGE_HOOK_BINARY_TARGET debian/rules . buildinfo DPKG_BUILDPACKAGE_HOOK_BUILDINFO_OPTIONS dpkg-genbuildinfo . changes DPKG_BUILDPACKAGE_HOOK_CHANGES_OPTIONS dpkg-genchanges . postclean check DPKG_BUILDPACKAGE_HOOK_CHECK_OPTIONS . sign done hook-command : %% %. %a (0 1) . %p . %v . %s ( /epoch). %u (upstream version). --buildinfo-file=filename .buildinfo ( dpkg 1.21.0). --buildinfo-option=opt opt dpkg-genbuildinfo ( dpkg 1.18.11). . --sign-backend=sign-backend OpenPGP sign-command ( dpkg 1.21.10). auto . OpenPGP : sop Stateless OpenPGP (SOP) sqop rsop gosop pgpainless-cli. sq Sequoia-PGP. gpg GnuPG. -p, --sign-command=sign-command dpkg-buildpackage OpenPGP (.dsc) .buildinfo .changes sign-command ( PATH ) ( dpkg 1.18.8). sign-command --sign-backend . sign-command . -k, --sign-keyid=key-id --sign-key=key-id OpenPGP ( ) (--sign-key dpkg 1.18.8 --sign-keyid dpkg 1.21.10). --sign-keyfile=key-file key-file OpenPGP ( dpkg 1.21.10). : key-file . -us, --unsigned-source ( dpkg 1.18.8). -ui, --unsigned-buildinfo .buildinfo ( dpkg 1.18.19). -uc, --unsigned-changes .buildinfo .changes ( dpkg 1.18.8). --no-sign .buildinfo .changes ( dpkg 1.18.20). --force-sign -us --unsigned-source -ui --unsigned-buildinfo -uc --unsigned-changes ( dpkg 1.17.0). -sn -ss -sA -sk -su -sr -sK -sU -sR -i, --diff-ignore[=regex] -I, --tar-ignore[=pattern] -z, --compression-level=level -Z, --compression=compressor dpkg-source . . --source-option=opt opt dpkg-source ( dpkg 1.15.6). . --changes-file=filename .changes ( dpkg 1.21.0). --changes-option=opt opt dpkg-genchanges ( dpkg 1.15.6). . --admindir=dir --admindir dir dpkg ( dpkg 1.14.0). /var/lib/dpkg . -?, --help . --version . (ENVIRONMENT) (External environment) DEB_CHECK_COMMAND .changes ( dpkg 1.17.6). --check-command . DEB_SIGN_KEYID .changes .buildinfo .dsc ( dpkg 1.17.2). --sign-keyid . DEB_SIGN_KEYFILE .changes .buildinfo .dsc ( dpkg 1.21.10). --sign-keyfile . DEB_BUILD_OPTIONS dpkg debian/rules . (`=') . . dpkg debian/rules . parallel=N debian/rules N . --jobs --jobs-force . nocheck dpkg-buildpackage DEB_CHECK_COMMAND . debian/rules . noopt debian/rules dpkg-buildflags . nostrip debian/rules (objects) (strip) . debian/rules make mk/buildtools.mk make STRIP . terse dpkg-buildpackage make(1) --no-print-directory MAKEFLAGS . debian/rules . hardening=feature-spec reproducible=feature-spec abi=feature-spec future=feature-spec qa=feature-spec optimize=feature-spec sanitize=feature-spec . dpkg-buildflags(1) . DEB_BUILD_PROFILES () ( dpkg 1.17.2). . -P . DPKG_COLORS ( dpkg 1.18.5). : auto () always never. DPKG_NLS (Native Language Support) ( i18n) ( dpkg 1.19.0). : 0 1 (). (Internal environment) dpkg-buildpackage (export) debian/rules . DEB_BUILD_* DEB_HOST_* DEB_TARGET_* dpkg-architecture -a -t . -s . DEB_RULES_REQUIRES_ROOT Rules-Requires-Root dpkg-build-api . Rules-Requires-Root . debian/rules rootless-builds.txt . DEB_GAIN_ROOT_CMD Rules-Requires-Root no binary-targets gain-root-command . SOURCE_DATE_EPOCH (epoch) debian/changelog . (FILES) /etc/dpkg/buildpackage.conf . $XDG_CONFIG_HOME/dpkg/buildpackage.conf $HOME/.config/dpkg/buildpackage.conf . (NOTES) (Compiler flags are no longer exported) dpkg 1.14.17 1.16.1 dpkg-buildpackage (CFLAGS CXXFLAGS FFLAGS CPPFLAGS LDFLAGS) dpkg-buildflags (export) . . (Default build targets) dpkg-buildpackage dpkg 1.16.2 build-arch build-indep . dpkg 1.22.7 build . . (SECURITY) . (BUGS) gain-root-command sign-command . (SEE ALSO) /usr/share/doc/dpkg/spec/rootless-builds.txt dpkg-source(1) dpkg-architecture(1) dpkg-buildflags(1) dpkg-genbuildinfo(1) dpkg-genchanges(1) fakeroot(1) lintian(1) SOP sq(1) gpg(1). 1.23.7-dirty 2026-03-06 dpkg-buildpackage(1)