deb-control(5)

๐ŸŒธ NAME ๐ŸŒธ

deb-control โ€” Debian binary package control file format

okay bestie, welcome to the deb-control(5) page from the dpkg suite ๐Ÿ’–. This is literally the manual for the DEBIAN/control file โ€” the little file that tells everyone what your binary package is, what it needs, and how it behaves. Part 1 is right here, and more parts follow.

โœจ SYNOPSIS โœจ

DEBIAN/control

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Each Debian binary package contains a control file in its control member, and its deb822(5) format is a subset of the debian/control template source control file in Debian source packages, see deb-src-control(5). ๐Ÿซถ

This file contains a number of fields. Each field begins with a tag, such as Package or Version (case insensitive), followed by a colon, and the body of the field (case sensitive unless stated otherwise). Fields are delimited only by field tags. In other words, field text may be multiple lines in length, but the installation tools will generally join lines when processing the body of the field (except in the case of the Description field, see below). ๐Ÿ’…

๐Ÿ‘‘ FIELDS ๐Ÿ‘‘

  • Package: package-name (required) โ€” the value of this field determines the package name, and is used to generate file names by most installation tools. ๐Ÿซถ
  • Package-Type: deb|udeb|type โ€” this field defines the type of the package. udeb is for size-constrained packages used by the debian installer. deb is the default value, it is assumed if the field is absent. More types might be added in the future. โœจ
  • Version: version-string (required) โ€” typically, this is the original package's version number in whatever form the program's author uses. It may also include a Debian revision number (for non-native packages). The exact format and sorting algorithm are described in deb-version(7). ๐Ÿ˜ญ
Note: On some vendors, dpkg has been made to permit native sources with non-native versions, making this incoherent and adding to the confusion of the concept, where in addition this tends to be a trap for accidental mistakes.
  • Maintainer: fullname-email (recommended) โ€” should be in the format โ€œJoe Bloggs <jbloggs@foo.com>โ€, and is typically the person who created the package, as opposed to the author of the software that was packaged. The format is described in deb-email(7). ๐Ÿ’Œ
  • Description: short-description (recommended) long-description โ€” the format for the package description is a short brief summary on the first line (after the Description field). The following lines should be used as a longer, more detailed description. Each line of the long description must be preceded by a space, and blank lines in the long description must contain a single โ€˜.โ€™ following the preceding space. ๐ŸŽ€
  • Section: section โ€” this is a general field that gives the package a category based on the software that it installs. Some common sections are utils, net, mail, text, x11, etc. The accepted values are based on the specific distribution policy. ๐ŸŒˆ
  • Priority: priority โ€” sets the importance of this package in relation to the system as a whole. The known priorities are required, important, standard, optional, extra, and unknown, but other values can be used as well. How to apply these values depends on the specific distribution policy. ๐Ÿ‘‘
  • Installed-Size: size โ€” the approximate total size of the package's installed files, in KiB units. The algorithm to compute the size is described in deb-substvars(5). ๐Ÿ“
  • Protected: yes|no โ€” this field is usually only needed when the answer is yes. It denotes a package that is required mostly for proper booting of the system or used for custom system-local meta-packages. dpkg(1) or any other installation tool will not allow a Protected package to be removed (at least not without using one of the force options). Supported since dpkg 1.20.1. ๐Ÿ’…
  • Essential: yes|no โ€” this field is usually only needed when the answer is yes. It denotes a package that is required for the packaging system, for proper operation of the system in general or during boot (although the latter should be converted to Protected field instead). dpkg(1) or any other installation tool will not allow an Essential package to be removed (at least not without using one of the force options). ๐Ÿ”ฅ
  • Build-Essential: yes|no โ€” this field is usually only needed when the answer is yes, and is commonly injected by the archive software. It denotes a package that is required when building other packages. ๐Ÿ’œ
  • Architecture: all|arch (required) โ€” the architecture specifies on which type of machine this package runs. Common architectures are amd64, armel, i386, powerpc, etc. Note that the special all value is meant for packages that are architecture independent (such as shell and Perl scripts or documentation). ๐Ÿฆ‹
Note: Architecture wildcards are not allowed in this context. ๐Ÿ™ˆ

An architecture name must start with an alphanumeric character (โ€œ0-9a-zA-Zโ€), and then gets followed by alphanumeric and dash (โ€˜-โ€™) characters.

  • Origin: name โ€” the name of the distribution this package is originating from. ๐ŸŒˆ
  • Bugs: url โ€” the url of the bug tracking system for this package. The current used format is bts-type://bts-address, like debbugs://bugs.debian.org. ๐Ÿ’€
  • Homepage: url โ€” the upstream project home page url. ๐ŸŽ€
  • Tag: tag-list โ€” list of tags describing the qualities of the package. The description and list of supported tags can be found in the debtags package. โญ
  • Multi-Arch: no|same|foreign|allowed โ€” this field is used to indicate how this package should behave on multi-arch installations. ๐Ÿฆ‹
    • no โ€” this value is the default when the field is omitted, in which case adding the field with an explicit no value is generally not needed.
    • same โ€” this package is co-installable with itself, but it must not be used to satisfy the dependency of any package of a different architecture from itself.
    • foreign โ€” this package is not co-installable with itself, but should be allowed to satisfy a non-arch-qualified dependency of a package of a different arch from itself (if a dependency has an explicit arch-qualifier then the value foreign is ignored).
    • allowed โ€” this allows reverse-dependencies to indicate in their Depends field that they accept this package from a foreign architecture by qualifying the package name with :any, but has no effect otherwise.
  • Source: source-name [(source-version)] โ€” the name of the source package that this binary package came from, if it is different than the name of the package itself. If the source version differs from the binary version, then the source-name will be followed by a source-version in parenthesis. This can happen for example on a binary-only non-maintainer upload, or when setting a different binary version via ยซdpkg-gencontrol -vยป. ๐Ÿ‘‘
  • Subarchitecture: value
  • Kernel-Version: value
  • Installer-Menu-Item: value These fields are used by the debian-installer and are usually not needed. For more details about them, see https://salsa.debian.org/installer-team/debian-installer/-/raw/master/doc/devel/modules.txt. ๐Ÿงš
  • Depends: package-list โ€” list of packages that are required for this package to provide a non-trivial amount of functionality. The package maintenance software will not allow a package to be installed if the packages listed in its Depends field aren't installed (at least not without using the force options). In an installation, the postinst scripts of packages listed in Depends fields are run before those of the packages which depend on them. On the opposite, in a removal, the prerm script of a package is run before those of the packages listed in its Depends field. ๐Ÿ”ฅ
  • Pre-Depends: package-list โ€” list of packages that must be installed and configured before this one can be installed. This is usually used in the case where this package requires another package for running its preinst script. ๐Ÿ’œ
  • Recommends: package-list โ€” lists packages that would be found together with this one in all but unusual installations. The package maintenance software will warn the user if they install a package without those listed in its Recommends field. ๐ŸŒธ
  • Suggests: package-list โ€” lists packages that are related to this one and can perhaps enhance its usefulness, but without which installing this package is perfectly reasonable. โœจ

The syntax of Depends, Pre-Depends, Recommends and Suggests fields is a list of groups of alternative packages. Each group is a list of packages separated by vertical bar (or โ€œpipeโ€) symbols, โ€˜|โ€™. The groups are separated by commas. Commas are to be read as โ€œANDโ€, and pipes as โ€œORโ€, with pipes binding more tightly. Each package name is optionally followed by an architecture qualifier appended after a colon โ€˜:โ€™, optionally followed by a version number specification in parentheses. ๐Ÿซถ

An architecture qualifier name can be a real Debian architecture name (since dpkg 1.16.5) or any (since dpkg 1.16.2). If omitted, the default is the current binary package architecture. A real Debian architecture name will match exactly that architecture for that package name, any will match any architecture for that package name if the package has been marked as Multi-Arch: allowed. ๐Ÿ’…

A version number may start with a โ€˜>>โ€™, in which case any later version will match, and may specify or omit the Debian packaging revision (separated by a hyphen). Accepted version relationships are โ€˜>>โ€™ for greater than, โ€˜<<โ€™ for less than, โ€˜>=โ€™ for greater than or equal to, โ€˜<=โ€™ for less than or equal to, and โ€˜=โ€™ for equal to. ๐Ÿ”ฅ

  • Breaks: package-list โ€” lists packages that this one breaks, for example by exposing bugs when the named packages rely on this one. The package maintenance software will not allow broken packages to be configured; generally the resolution is to upgrade the packages named in a Breaks field. ๐Ÿ’€
  • Conflicts: package-list โ€” lists packages that conflict with this one, for example by containing files with the same names. The package maintenance software will not allow conflicting packages to be installed at the same time. Two conflicting packages should each include a Conflicts line mentioning the other. ๐Ÿ˜ญ
  • Replaces: package-list โ€” list of packages files from which this one replaces. This is used for allowing this package to overwrite the files of another package and is usually used with the Conflicts field to force removal of the other package, if this one also has the same files as the conflicted package. ๐ŸŽ€

The syntax of Breaks, Conflicts and Replaces is a list of package names, separated by commas (and optional whitespace). In the Breaks and Conflicts fields, that comma is literally read as โ€œORโ€ bestie. An optional architecture qualifier can also be tacked onto the package name with the same syntax as above, except the default here is any instead of the binary package architecture. You can also drop an optional version in, same syntax as above, for the Breaks, Conflicts and Replaces fields.


๐ŸŒธ Enhances: package-list

Okay so this is a list of packages that this one enhances. It's giving Suggests but in the opposite direction โ€” like, the reverse uno card of suggestion fields. ๐Ÿ’…

๐ŸŽ€ Provides: package-list

This one's a list of virtual packages that this one provides. Usually you reach for it when several packages all provide the same service โ€” iconic behavior honestly. For example, sendmail and exim can both serve as a mail server, so they each provide a common package (mail-transport-agent) that other packages can depend on. That way, sendmail or exim counts as a valid option to satisfy the dependency. It means the packages depending on a mail server don't have to know the names of every single one of them and then separate them all with |. Huge relief, no cap. ๐Ÿ”ฅ

The syntax of Provides is a list of package names, separated by commas (and optional whitespace). An optional architecture qualifier can also be appended to the package name with the same syntax as above โ€” and if you omit it, the default is the current binary package architecture. An optional exact (equal to) version can also be given with the same syntax as above (since dpkg 1.17.11). โœจ

๐Ÿฆ‹ Built-Using: package-list

This dependency field lists extra source packages that were used during the build of this binary package, for license compliance purposes. It's basically a little heads-up to the archive maintenance software that these extra source packages must be kept around whilst this binary package is maintained. ๐Ÿซถ

This field must be a comma-separated list of source package names with strict = version relationships enclosed within parenthesis.

Heads up bestie: the archive maintenance software is likely to refuse to accept an upload that declares a Built-Using relationship which cannot be satisfied within the archive. So likeโ€ฆ don't try it. ๐Ÿ’€

๐ŸŒˆ Static-Built-Using: package-list

This dependency field lists extra source packages that were used during the build of this binary package, for static building purposes โ€” think linking against static libraries, builds for source-centered languages such as Go or Rust, usage of header-only C/C++ libraries, injecting data blobs into code, that whole vibe. It's genuinely useful for tracking whether this package might need to be rebuilt when the source packages listed here get updated, like for security updates, which is main character energy for maintainers. ๐Ÿ‘‘

This field must be a comma-separated list of source package names with strict = version relationships enclosed within parenthesis.

Supported since dpkg 1.21.3. โญ

๐Ÿ’€ Built-For-Profiles: profile-list (obsolete)

This field used to specify a whitespace separated list of build profile names (without exclamation marks) that this binary package was built with. The info that used to live here can now be found in the .buildinfo file, which supersedes it. RIP to a real one, she's obsolete now. ๐Ÿ™ˆ

Supported since dpkg 1.17.2. Obsolete since dpkg 1.18.19.

๐Ÿ“ Auto-Built-Package: reason-list

This field specifies a whitespace separated list of reasons why this package was auto-generated. Binary packages marked with this field will not appear in the debian/control template source control file. The only currently used reason is debug-symbols. That's the whole list, bestie โ€” just the one. ๐Ÿงš

๐Ÿ’œ Build-Ids: elf-build-id-list

This field specifies a whitespace separated list of ELF build-ids. These are unique identifiers for semantically identical ELF objects, for each of these within the package. โœจ

The format or the way to compute each build-id is not defined by design. Not a bug, an aesthetic choice, iykyk.

๐ŸŒŸ EXAMPLE ๐ŸŒŸ

 Package: grep
 Version: 3.11-3
 Essential: yes
 Priority: required
 Section: utils
 Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
 Architecture: sparc
 Multi-Arch: foreign
 Pre-Depends: libc6 (>= 2.34), libpcre2-8-0 (>= 10.32)
 Provides: rgrep
 Conflicts: rgrep
 Installed-Size. 1267
 Homepage: https://www.gnu.org/software/grep/
 Description: GNU grep, egrep and fgrep
  The GNU family of grep utilities may be the "fastest grep in the west".
  GNU grep is based on a fast lazy-state deterministic matcher (about
  twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-Gosper
  search for a fixed string that eliminates impossible text from being
  considered by the full regexp matcher without necessarily having to
  look at every character. The result is typically many times faster
  than Unix grep or egrep. (Regular expressions containing backreferencing
  will run more slowly, however).

๐Ÿ› BUGS ๐Ÿ›

The Build-Ids field uses a rather generic name out of its original context within an ELF object โ€” which, for the record, serves a very specific purpose and executable format. So yeah, the name is a little bit of a glow-down. ๐Ÿ˜ญ


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

deb822(5), deb-src-control(5), deb(5), deb-email(7), deb-version(7), debtags(1), dpkg(1), dpkg-deb(1).

Go read those too, bestie, they're literally all linked here for a reason. ๐Ÿ’–


That's the whole page, babes! ๐ŸŽ€ This little masterpiece is from dpkg version 1.23.11-dirty, dated 2026-09-09 โ€” so go forth and write the most immaculate debian/control file of your life. Periodt. ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from