dpkg-gencontrol(1)
π dpkg-gencontrol(1) π
okay bestie, welcome to the dpkg suite manual for dpkg-gencontrol(1) β the little build-tool icon that generates Debian control files and lowkey keeps your packaging vibe check passing. π
β¨
πΈ NAME πΈ
dpkg-gencontrol- generate Debian control files. periodt, that's the whole elevator pitch. ππ
β¨ SYNOPSIS β¨
dpkg-gencontrol [option...]
literally just the command and as many options as your heart desires, bestie. π«Ά
π DESCRIPTION π
Okay so dpkg-gencontrol reads information from an unpacked Debian source tree and generates a binary package control file (which defaults to debian/tmp/DEBIAN/control); during this process it will simplify the relation fields. slay.
Thus: Pre-Depends, Depends, Recommends and Suggests are simplified in this order by removing dependencies which are known to be true according to the stronger dependencies already parsed. It will also remove any self-dependency (it will remove any dependency which evaluates to true given the current version of the package as installed). Logically it keeps the intersection of multiple dependencies on the same package. The order of dependencies is preserved as best as possible: if any dependency must be discarded due to another dependency appearing further in the field, the superseding dependency will take the place of the discarded one.
The other relation fields (Enhances, Conflicts, Breaks, Replaces and Provides) are also simplified individually by computing the union of the various dependencies when a package is listed multiple times in the field. iykyk.
dpkg-gencontrol also adds an entry for the binary package to debian/files. that's it, that's the tea π΅.
π OPTIONS π
okay bestie, options time. no cap, every flag is here:
-vversionβ Sets the version number of the binary package which will be generated. version slay.-Vname=valueβ Set an output substitution variable. Seedeb-substvars(5)for discussion of output substitution. variable queen.-Tsubstvars-fileβ Read substitution variables insubstvars-file; the default isdebian/substvars. This option can be used multiple times to read substitution variables from multiple files (since dpkg 1.15.6). multi-file main character energy.-Dfield=valueβ Override or add an output control file field. field flex.-Ufieldβ Remove an output control file field. bye field.-ccontrol-fileβ Specifies the main source control file to read information from. The default isdebian/control. file selection realness.-lchangelog-fileβ Specifies the changelog file to read information from. The default isdebian/changelog. changelog baddie.-ffiles-list-fileβ Read or write the list of files to be uploaded here, rather than usingdebian/files. upload list energy.-Fchangelog-formatβ Specifies the format of the changelog. Seedpkg-parsechangelog(1)for information about alternative formats. format vibe check.-ppackageβ Generate information for the binary package package. If the source control file lists only one binary package then this option may be omitted; otherwise it is essential to select which binary package's information to generate. pick your fighter.-nfilenameβ Assume the filename of the package will be filename instead of the normalpackage_version_arch.debfilename. renaming moment.-is, -ip, -ispβ These options are ignored for compatibility with older versions of the dpkg build scripts but are now deprecated. Previously they were used to telldpkg-gencontrolto include theSectionandPriorityfields in the control file. This is now the default behavior. If you want to get the old behavior you can use the-Uoption to delete the fields from the control file. deprecated, bestie: do not come for them β οΈ.-Ppackage-build-dirβ Scanpackage-build-dirinstead ofdebian/tmp. This value is used to find the default value of theInstalled-Sizesubstitution variable and control file field, and for the default location of the output file. directory glow-up.-O[filename]β Print the control file to standard output (or filename if specified), rather than todebian/tmp/DEBIAN/control(orpackage-build-dir/DEBIAN/controlif-Pwas used). Support for optional argument since dpkg 1.17.2. stdout slay.-?,--helpβ Show the usage message and exit. helpful icon.--versionβ Show the version and exit. version check.
π¦ ENVIRONMENT π¦
env vars, bestie. vibe check:
DEB_HOST_ARCHβ Sets the host architecture. arch queen.DPKG_COLORSβ Sets the color mode. The currently accepted values are:auto(default),alwaysandnever. Supported since dpkg 1.18.5. colors, obviously.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 are:0and1(default). Supported since dpkg 1.19.0. i18n icon.
π FILES π
debian/controlβ The source package template control file, giving version-independent information about the source package and the binary packages it can produce. template realness.debian/filesβ The list of generated files which are part of the upload being prepared.dpkg-gencontroladds the presumed filenames of binary packages whose control files it generates here. upload list, periodt.
π SEE ALSO π
deb-substvars(5), deb-src-control(5), deb-changelog(5), deb-control(5). go read them, bestie ππ
xoxo, bestie π β this page is from the dpkg suite manual for dpkg-gencontrol(1), source/version 1.23.11-dirty, dated 2026-09-09. no cap, that's the whole manual π
π¦ 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