man > dpkg-gencontrol(1)

๐Ÿ“ NAME

dpkg-gencontrol โ€” generate Debian control files

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ“ Output control file to stdoutdpkg-gencontrol -OPrint control file to standard output
๐Ÿ“ฆ Set binary package versiondpkg-gencontrol -v1.2.3Set version number of generated binary package
๐ŸŽฏ Select specific binary packagedpkg-gencontrol -pfooGenerate info for binary package foo (required for multi-package source)
๐Ÿ“ Override control file fielddpkg-gencontrol -DFoo=barOverride or add an output control file field
๐Ÿ—‘๏ธ Remove control file fielddpkg-gencontrol -UFooRemove an output control file field
๐Ÿ“„ Use custom control filedpkg-gencontrol -cmycontrolSpecify main source control file (default: debian/control)
๐Ÿ“œ Use custom changelogdpkg-gencontrol -lmyclogSpecify changelog file (default: debian/changelog)
๐Ÿงน Generate info for custom build dirdpkg-gencontrol -Pbuild/fooScan build/foo instead of debian/tmp
๐Ÿ”ง Set substitution variabledpkg-gencontrol -Vname=valueSet an output substitution variable

๐Ÿ“‹ SYNOPSIS

dpkg-gencontrol [option...]

๐Ÿ“– DESCRIPTION

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.

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 (in fact 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.

dpkg-gencontrol also adds an entry for the binary package to debian/files.

โš™๏ธ OPTIONS

๐ŸŒ ENVIRONMENT

๐Ÿ“ FILES

๐Ÿ“š SEE ALSO

deb-substvars(5), deb-src-control(5), deb-changelog(5), deb-control(5).

dpkg-gencontrol(1)
๐Ÿ“ NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“– DESCRIPTION โš™๏ธ OPTIONS ๐ŸŒ ENVIRONMENT ๐Ÿ“ FILES ๐Ÿ“š SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 02:08 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^