dpkg-buildapi(1)
π NAME
dpkg-buildapi β returns the build API level to use during package build. This is the dpkg-buildapi(1) page from the dpkg suite, and it's literally here to hand you that build API level for source Debian package builds. slay β¨
β¨ SYNOPSIS
dpkg-buildapi [option...] [command]
πΈ DESCRIPTION
okay so dpkg-buildapi is a tool to retrieve the dpkg-build-api(7) level to use during build of source Debian packages. That's the whole job, bestie. It was introduced in dpkg 1.22.0 β noted, iconic behavior π
.
π COMMANDS
--helpβ shows the usage message and exits. Bye π--versionβ shows the version and exits. Also bye π
π¦ OPTIONS
-ccontrol-fileβ specifies the main source control file to read information from. The default isdebian/control. Yes, that's the exact spelling:-ccontrol-fileπ§.
π ENVIRONMENT
DPKG_BUILD_APIβ the build API level to use. It's intended to be used internally by the tools executed fromdebian/rules, so they don't have to parsedebian/controlmultiple times. It is not intended to set the global build API level fromdebian/rules, because then build drivers (such asdpkg-buildpackage(1)) cannot access it.
β οΈ caveat time, bestie:DPKG_BUILD_APIis for internal use by tools executed fromdebian/rulesso they avoid parsingdebian/controlmultiple times β do not use it to set the global build API level fromdebian/rules, otherwise build drivers (such asdpkg-buildpackage(1)) cannot access it. periodt.
DPKG_COLORSβ sets the color mode. The currently accepted values areauto(default),always, andnever. color me obsessed π.DPKG_NLSβ if set, it will be used to decide whether to activate Native Language Support, also known as internationalization (or i18n) support. The accepted values are0and1(default). i18n girlies rise π«Ά.
π§ FILES
π¦ Packaging support
/usr/share/dpkg/buildapi.mkβ a Makefile snippet that parses the build API level into a variable. Makefile girlies, this one's for you π .
okay that's the whole page, bestie π β source/version 1.23.11-dirty, dated 2026-09-09, for dpkg-buildapi(1). periodt β¨
π¦ where this page comes from
- arch rolling: dpkg 1.23.11-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms