1.0 KiB
1.0 KiB
dpkg-buildpackage
Compile binary and/or source Debian packages from source code. Normally executed inside a source tree that contains a
debian/directory. Also handles build dependencies, creates files like.buildinfoand.changes, and signs the result if applicable. More information: https://manned.org/dpkg-buildpackage.
- Generate source and binary packages:
dpkg-buildpackage
- Generate only binary packages (no source package):
dpkg-buildpackage {{[-b|--build=binary]}}
- Generate only the source package (without compiling binaries):
dpkg-buildpackage {{[-S|--build=source]}}
- Do not sign the
.dscand.changesfiles:
dpkg-buildpackage {{[-us|--unsigned-source]}} {{[-uc|--unsigned-changes]}}
- Do not run
cleanbefore compiling:
dpkg-buildpackage {{[-nc|--no-pre-clean]}}
- Use
fakerootas the command to gain root privileges during the build:
dpkg-buildpackage {{[-r|--root-command=]}}fakeroot
- Run a specific
debian/rulestarget:
dpkg-buildpackage {{[-T|--rules-target=]}}{{clean}}