DPKG-GENBUILDDEPS(1)
π DPKG-GENBUILDDEPS π
okay bestie, welcome to the dpkg-genbuilddeps era of your life β¨ this lil cutie lives in the General Commands Manual, and she is genuinely so useful, no cap π«Ά
β¨ NAME β¨
dpkg-genbuilddeps β generate a list of packages used to build this package π
πΈ SYNOPSIS πΈ
dpkg-genbuilddeps [arg ...]
π¦ DESCRIPTION π¦
so like, this program is a wrapper around dpkg-depcheck(1) π
you run it from the top of a Debian build tree, okay? and what it does is it calls dpkg-buildpackage with whatever arguments you handed it on the command line, and then β this is the main character part β it traces the execution</> of that build and figures out which non-essential packages got used while the package was building π₯
why do you care? because this is lowkey perfect for figuring out what your Build-Depends control fields should actually say π obsessed.
now, bestie, real talk β it does NOT tell you which packages were used for the arch independent parts of the build versus the arch dependent parts, and it also does not attempt to figure out which versions of packages are required π so don't come for her about that, that's just not her job.
the good news? she should be totally able to run under fakeroot instead of being run as root, either like:
fakeroot dpkg-genbuilddeps
or like:
dpkg-genbuilddeps -rfakeroot
either one slays π
one thing though β this program requires the build-essential package to be installed. if it's not, pls just use dpkg-depcheck directly instead, with a command like:
dpkg-depcheck --all dpkg-buildpackage -us -uc -b -rfakeroot ...
and honestly? all this program itself actually does is essentially run the command:
dpkg-depcheck -b dpkg-buildpackage -us -uc -b -rfakeroot [arg ...]
like that's it. that's the whole vibe. she's a wrapper and she knows it π β¨
π SEE ALSO π
dpkg-depcheck(1)fakeroot(1)- The Debian Policy Manual, sections on
Build-Dependsetc. π
π«Ά 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@debian.org> β¨ and this manual page was written by Julian Gilbey <jdg@debian.org> π
and that's the whole page, bestie!! this one shipped under DEBIAN in the Debian Utilities collection β go forth and trace your builds, you absolute icon ππ
π¦ where this page comes from
- debian bookworm: devscripts 2.23.4+deb12u2 Β· GPL-2.0-or-later
- debian trixie: devscripts 2.25.15+deb13u1 Β· GPL-2.0-or-later
- epel 10: devscripts 2.25.5-1.el10_1 Β· GPL-2.0-or-later
- epel 9: devscripts 2.25.5-1.el9 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.19-2.fc43 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.33-1.fc43 Β· GPL-2.0-or-later
- fedora 44: devscripts 2.26.5-1.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- ubuntu jammy: devscripts 2.22.1ubuntu1 Β· GPL-2.0-or-later
- ubuntu jammy: devscripts 2.22.1ubuntu1.2 Β· GPL-2.0-or-later
- ubuntu noble: devscripts 2.23.7 Β· GPL-2.0-or-later
- ubuntu noble: devscripts 2.23.7ubuntu0.2 Β· GPL-2.0-or-later
- ubuntu questing: devscripts 2.25.19ubuntu2
- ubuntu resolute: devscripts 2.26.7 Β· GPL-2.0-or-later
- ubuntu stonking: devscripts 2.26.11ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms