info > DPKG-GENBUILDDEPS

🏷️ NAME

dpkg-genbuilddeps - generate a list of packages used to build this package

🚀 Quick Reference

Use CaseCommandDescription
🔍 Get build dependenciesdpkg-genbuilddepsRun at root of Debian source tree to output required non‑essential packages
🤝 Use fakeroot (no root needed)dpkg-genbuilddeps -rfakerootTraces the build under fakeroot; equivalent to fakeroot dpkg-genbuilddeps
🏗️ Binary‑only build, no signingdpkg-genbuilddeps -us -uc -bPass -us (unsigned source), -uc (unsigned changes) and -b (binary‑only) to dpkg-buildpackage
⚠️ When build‑essential is absentdpkg-depcheck --all dpkg-buildpackage -us -uc -b -rfakeroot ...Use dpkg-depcheck directly if the build-essential package is not installed

📜 SYNOPSIS

dpkg-genbuilddeps [arg ...]

📘 DESCRIPTION

🧰 This program is a wrapper around dpkg-depcheck(1). It should be run from the top of a Debian build tree. It calls dpkg-buildpackage with any arguments given on the command line, and by tracing the execution of this, it determines which non‑essential packages were used during the package building. This can be useful in determining what the Build-Depends control fields should contain. It does not determine which packages were used for the arch independent parts of the build and which for the arch dependent parts, nor does it attempt to determine which versions of packages are required. 👥 It should be able to run under fakeroot rather than being run as root, as fakeroot dpkg-genbuilddeps, or dpkg-genbuilddeps -rfakeroot.

💿 This program requires the build-essential package to be installed. If it is not, please use dpkg-depcheck directly, with a command such as:

  dpkg-depcheck --all dpkg-buildpackage -us -uc -b -rfakeroot ...

All this program itself does is essentially to run the command:

  dpkg-depcheck -b dpkg-buildpackage -us -uc -b -rfakeroot [arg ...]

👁️ SEE ALSO

dpkg-depcheck(1), fakeroot(1)

The Debian Policy Manual, sections on Build-Depends etc.

👤 AUTHOR

The original dpkg-genbuilddeps was written by Ben Collins <bcollins@debian.org>. The current version is a simple wrapper around dpkg-depcheck written by Bill Allombert <ballombe AT debian.org>. This manual page was written by Julian Gilbey <jdg AT debian.org>.

DEBIAN Debian Utilities DPKG-GENBUILDDEPS(1)

DPKG-GENBUILDDEPS
🏷️ NAME 🚀 Quick Reference 📜 SYNOPSIS 📘 DESCRIPTION 👁️ SEE ALSO 👤 AUTHOR

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-14 21:41 @2600:1f28:365:80b0:4d23:66fa:c2bb:7bae
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!