MK-BUILD-DEPS(1)

๐Ÿ’– MK-BUILD-DEPS ๐Ÿ’–

okay bestie, welcome to the manual page for mk-build-deps โ€” that's the mk-build-deps(1) situation, a lil Debian Utilities icon, and she is here to serve ๐Ÿ’…


โœจ NAME โœจ

mk-build-deps โ€” build a package that satisfies a package's build-dependencies ๐Ÿซถ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

mk-build-deps --help|--version

mk-build-deps [options] control file | package name ...

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so like. you hand her a package name and/or a control file, and mk-build-deps will use equivs to generate a binary package that you can install to satisfy all the build dependencies of that package. that's the whole gig. slay โœจ

and if you pass --build-dep and/or --build-indep, then the resulting binary package(s) will depend solely on the Build-Depends / Build-Depends-Indep dependencies respectively. no extras, no add-ons, just the vibes you asked for ๐Ÿ’–


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -i, --install โ€” installs the generated packages and the build-dependencies that come with them. the full package deal ๐ŸŽ€
  • -t, --tool โ€” when installing the generated package, use the tool you specify here. the default is apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends โ€” yes girl, that's literally the default, memorize it ๐Ÿ˜ญ
  • -r, --remove โ€” removes the package file after installing it. ngl this one gets ignored if you use it without the --install switch, so don't be surprised ๐Ÿ™ˆ
  • -a foo, --arch foo โ€” sets the architecture of the produced binary package to foo. here's the little flowchart bestie: if you don't give this option, she falls back to the value given by --host-arch. if you give neither this option nor --host-arch, but the Build-Depends contain architecture restrictions, she uses the value printed by dpkg-architecture -qDEB_HOST_ARCH. otherwise? she uses all.

The package architecture must be equal to the host architecture, except if the package architecture is all.

The package architecture cannot be all if the build and host architecture differ. periodt.

  • --host-arch foo โ€” sets the host architecture the binary package is built for. this defaults to whatever dpkg-architecture -qDEB_HOST_ARCH prints out. use this option when you wanna create a binary package that's able to satisfy crossbuild dependencies ๐Ÿ‘‘

If you use this option together with --arch, then the two must be equal โ€” except if the value of --arch is all.

And if --arch is not given, then this option also sets the package architecture. multitasking icon โœจ

  • --build-arch foo โ€” sets the build architecture the binary package is built for. this defaults to the value printed by dpkg-architecture -qDEB_BUILD_ARCH. again, this is for making a binary package that can satisfy crossbuild dependencies ๐Ÿ’ช
  • -B, --build-dep โ€” generates a package that only depends on the source package's Build-Depends dependencies. just those ones ๐Ÿ’–
  • -A, --build-indep โ€” generates a package that only depends on the source package's Build-Depends-Indep dependencies. the independent lil sibling ๐ŸŒธ
  • -P, --build-profiles profile[,...] โ€” generates a package that only depends on build dependencies with the build profile(s), given as a comma-separated list. the default behavior is to use no specific profile at all. and heads up: setting this option overrides the DEB_BUILD_PROFILES environment variable ๐Ÿ”ฅ
  • -h, --help โ€” shows a summary of options. your little map ๐Ÿ—บ๏ธ
  • -v, --version โ€” shows version and copyright information. the receipts ๐Ÿงพ
  • -s, --root-cmd โ€” uses the specified tool to gain root privileges before installing. ignored if you use it without the --install switch. so yeah, needs her buddy --install to actually do anything ๐Ÿ™ˆ

๐ŸŒˆ ENVIRONMENT ๐ŸŒˆ

๐Ÿ”ฎ External environment ๐Ÿ”ฎ

  • DEB_BUILD_PROFILES โ€” if this is set, it will be used as the active build profile(s) for the build dependencies to be installed. it's a space separated list of profile names. and it gets overridden by the -P option, so -P always wins that argument ๐Ÿ’…

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

mk-build-deps is copyright by Vincent Fourmond, and was modified for the devscripts package by Adam D. Barratt <adam@adam-barratt.org.uk>. give them their flowers ๐Ÿ’

This program comes with ABSOLUTELY NO WARRANTY. You are free to redistribute this code under the terms of the GNU General Public License, version 2 or later. read that again bestie, ABSOLUTELY NO WARRANTY, no cap ๐Ÿ˜ญ

okay that's the whole page, you ate this ๐Ÿ“ and just so you know where this all came from: Debian Utilities, dated 2026-09-21 โ€” bye bestie, go build something gorgeous ๐Ÿ’œโœจ

๐Ÿ“ฆ where this page comes from