1 # dpkg manual page - deb-control(5)
3 # Copyright © 1995 Raul Miller, Ian Jackson, Ian Murdock
4 # Copyright © 1999 Ben Collins <bcollins@debian.org>
5 # Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
6 # Copyright © 2007-2011, 2013-2015 Guillem Jover <guillem@debian.org>
7 # Copyright © 2008-2012 Raphaël Hertzog <hertzog@debian.org>
9 # This is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <https://www.gnu.org/licenses/>.
26 deb-control - Debian binary packages' master control file format
34 Each Debian binary package contains a B<control> file in its B<control>
35 member, and its L<deb822(5)> format is a subset of the master
36 B<debian/control> file in Debian source packages, see B<deb-src-control>(5).
38 This file contains a number of fields.
39 Each field begins with a tag, such as
43 (case insensitive), followed by a colon, and the body of the field
44 (case sensitive unless stated otherwise).
45 Fields are delimited only by field tags. In other words, field text
46 may be multiple lines in length, but the installation tools will
47 generally join lines when processing the body of the field (except
56 =item B<Package:> I<package-name> (required)
58 The value of this field determines the package name, and is used to
59 generate file names by most installation tools.
61 =item B<Package-Type:> B<deb>|B<udeb>|I<type>
63 This field defines the type of the package.
64 B<udeb> is for size-constrained packages used by the debian installer.
65 B<deb> is the default value, it is assumed if the field is absent.
66 More types might be added in the future.
68 =item B<Version:> I<version-string> (required)
70 Typically, this is the original package's version number in whatever form
71 the program's author uses. It may also include a Debian revision number
72 (for non-native packages). The exact format and sorting algorithm
76 =item B<Maintainer:> I<fullname-email> (recommended)
78 Should be in the format “Joe Bloggs E<lt>jbloggs@foo.comE<gt>”, and is typically
79 the person who created the package, as opposed to the author of the
80 software that was packaged.
82 =item B<Description:> I<short-description> (recommended)
84 =item S< >I<long-description>
86 The format for the package description is a short brief summary on the
87 first line (after the B<Description> field). The following lines should be
88 used as a longer, more detailed description. Each line of the long description
89 must be preceded by a space, and blank lines in the long description must
90 contain a single ‘B<.>’ following the preceding space.
92 =item B<Section:> I<section>
94 This is a general field that gives the package a category based on the
95 software that it installs.
96 Some common sections are B<utils>, B<net>, B<mail>, B<text>,
99 =item B<Priority:> I<priority>
101 Sets the importance of this package in relation to the system as a whole.
102 Common priorities are B<required>, B<standard>, B<optional>,
111 fields usually have a defined set of accepted values based on the specific
116 =item B<Installed-Size:> I<size>
118 The approximate total size of the package's installed files, in KiB units.
119 The algorithm to compute the size is described in L<deb-substvars(5)>.
121 =item B<Protected:> B<yes>|B<no>
123 This field is usually only needed when the answer is B<yes>.
124 It denotes a package that is required mostly for proper booting of the system
125 or used for custom system-local meta-packages.
126 L<dpkg(1)> or any other installation tool will not allow a B<Protected>
127 package to be removed (at least not without using one of the force options).
129 Supported since dpkg 1.20.1.
131 =item B<Essential:> B<yes>|B<no>
133 This field is usually only needed when the answer is B<yes>.
134 It denotes a package that is required for the packaging system, for
135 proper operation of the system in general or during boot (although the latter
136 should be converted to B<Protected> field instead).
137 L<dpkg(1)> or any other installation tool will not allow an B<Essential>
138 package to be removed (at least not without using one of the force options).
140 =item B<Build-Essential:> B<yes>|B<no>
142 This field is usually only needed when the answer is B<yes>, and is
143 commonly injected by the archive software.
144 It denotes a package that is required when building other packages.
146 =item B<Architecture:> I<arch>|B<all> (required)
148 The architecture specifies which type of hardware this package was compiled
150 Common architectures are B<amd64>, B<armel>, B<i386>, B<powerpc>,
154 value is meant for packages that are architecture independent.
155 Some examples of this are shell and Perl scripts, and documentation.
157 =item B<Origin:> I<name>
159 The name of the distribution this package is originating from.
161 =item B<Bugs:> I<url>
163 The I<url> of the bug tracking system for this package. The current
164 used format is I<bts-type>B<://>I<bts-address>, like
165 B<debbugs://bugs.debian.org>.
167 =item B<Homepage:> I<url>
169 The upstream project home page I<url>.
171 =item B<Tag:> I<tag-list>
173 List of tags describing the qualities of the package. The description and
174 list of supported tags can be found in the B<debtags> package.
176 =item B<Multi-Arch:> B<no>|B<same>|B<foreign>|B<allowed>
178 This field is used to indicate how this package should behave on a multi-arch
185 This value is the default when the field is omitted, in which case
186 adding the field with an explicit B<no> value is generally not needed.
190 This package is co-installable with itself, but it must not be used to
191 satisfy the dependency of any package of a different architecture from
196 This package is not co-installable with itself, but should be allowed to
197 satisfy a non-arch-qualified dependency of a package of a different arch
198 from itself (if a dependency has an explicit arch-qualifier then the
199 value B<foreign> is ignored).
203 This allows reverse-dependencies to indicate in their B<Depends>
204 field that they accept this package from a foreign architecture by
205 qualifying the package name with B<:any>, but has no effect otherwise.
209 =item B<Source:> I<source-name> [B<(>I<source-version>B<)>]
211 The name of the source package that this binary package came from, if it is
212 different than the name of the package itself.
213 If the source version differs from the binary version, then the
214 I<source-name> will be followed by a I<source-version> in parenthesis.
215 This can happen for example on a binary-only non-maintainer upload, or when
216 setting a different binary version via «B<dpkg-gencontrol -v>».
218 =item B<Subarchitecture:> I<value>
220 =item B<Kernel-Version:> I<value>
222 =item B<Installer-Menu-Item:> I<value>
224 These fields are used by the debian-installer and are usually not needed.
225 For more details about them, see
226 L<https://salsa.debian.org/installer-team/debian-installer/-/raw/master/doc/devel/modules.txt>.
228 =item B<Depends:> I<package-list>
230 List of packages that are required for this package to provide a
231 non-trivial amount of functionality. The package maintenance software
232 will not allow a package to be installed if the packages listed in its
234 field aren't installed (at least not without using the force options).
235 In an installation, the postinst scripts of packages listed in B<Depends>
236 fields are run before those of the packages which depend on them. On the
237 opposite, in a removal, the prerm script of a package is run before
238 those of the packages listed in its B<Depends> field.
240 =item B<Pre-Depends:> I<package-list>
242 List of packages that must be installed
244 configured before this one can be installed. This is usually used in the
245 case where this package requires another package for running its preinst
248 =item B<Recommends:> I<package-list>
250 Lists packages that would be found together with this one in all but
251 unusual installations. The package maintenance software will warn the
252 user if they install a package without those listed in its
256 =item B<Suggests:> I<package-list>
258 Lists packages that are related to this one and can perhaps enhance
259 its usefulness, but without which installing this package is perfectly
270 fields is a list of groups of alternative packages. Each group is a list
271 of packages separated by vertical bar (or “pipe”) symbols,
273 The groups are separated by commas.
274 Commas are to be read as “AND”, and pipes as “OR”, with pipes
275 binding more tightly.
276 Each package name is optionally followed by an architecture qualifier
277 appended after a colon ‘B<:>’, optionally followed by a version
278 number specification in parentheses.
280 An architecture qualifier name can be a real Debian architecture name
281 (since dpkg 1.16.5) or B<any> (since dpkg 1.16.2).
282 If omitted, the default is the current binary package architecture.
283 A real Debian architecture name will match exactly that architecture for
284 that package name, B<any> will match any architecture for that package
285 name if the package has been marked as B<Multi-Arch: allowed>.
287 A version number may start with a ‘B<E<gt>E<gt>>’, in which case any later
288 version will match, and may specify or omit the Debian packaging revision
289 (separated by a hyphen).
290 Accepted version relationships are ‘B<E<gt>E<gt>>’ for greater than,
291 ‘B<E<lt>E<lt>>’ for less than, ‘B<E<gt>=>’ for greater than or
292 equal to, ‘B<E<lt>=>’ for less than or equal to, and ‘B<=>’
297 =item B<Breaks:> I<package-list>
299 Lists packages that this one breaks, for example by exposing bugs
300 when the named packages rely on this one. The package maintenance
301 software will not allow broken packages to be configured; generally
302 the resolution is to upgrade the packages named in a
306 =item B<Conflicts:> I<package-list>
308 Lists packages that conflict with this one, for example by containing
309 files with the same names. The package maintenance software will not
310 allow conflicting packages to be installed at the same time. Two
311 conflicting packages should each include a
313 line mentioning the other.
315 =item B<Replaces:> I<package-list>
317 List of packages files from which this one replaces. This is used for
318 allowing this package to overwrite the files of another package and
319 is usually used with the
321 field to force removal of the other package, if this one also has the
322 same files as the conflicted package.
331 is a list of package names, separated by commas (and optional whitespace).
336 fields, the comma should be read as “OR”.
337 An optional architecture qualifier can also be appended to the package name
338 with the same syntax as above, but the default is B<any> instead of the
339 binary package architecture.
340 An optional version can also be given with the same syntax as above for the
349 =item B<Enhances:> I<package-list>
351 This is a list of packages that this one enhances.
352 It is similar to B<Suggests> but in the opposite direction.
354 =item B<Provides:> I<package-list>
356 This is a list of virtual packages that this one provides.
357 Usually this is used in the case of several packages all providing the
359 For example, sendmail and exim can serve as a mail server, so they
360 provide a common package (“mail-transport-agent”) on which
361 other packages can depend.
362 This will allow sendmail or exim to serve as a valid option to satisfy
364 This prevents the packages that depend on a mail server from having to
365 know the package names for all of them, and using ‘B<|>’ to
372 is a list of package names, separated by commas (and optional whitespace).
373 An optional architecture qualifier can also be appended to the package
374 name with the same syntax as above.
375 If omitted, the default is the current binary package architecture.
376 An optional exact (equal to) version can also be given with the same
377 syntax as above (honored since dpkg 1.17.11).
381 =item B<Built-Using:> I<package-list>
383 This dependency field lists extra source packages that were used during the
384 build of this binary package, for license compliance purposes.
385 This is an indication to the archive maintenance software that these extra
386 source packages must be kept whilst this binary package is maintained.
387 This field must be a comma-separated list of source package names with strict
388 ‘B<=>’ version relationships enclosed within parenthesis.
389 Note that the archive maintenance software is likely to refuse to accept an
390 upload which declares a B<Built-Using> relationship which cannot be satisfied
393 =item B<Static-Built-Using:> I<package-list>
395 This dependency field lists extra source packages that were used during the
396 build of this binary package, for static building purposes (for example
397 linking against static libraries, builds for source-centered languages such
398 as Go or Rust, usage of header-only C/C++ libraries, injecting data blobs
400 This is useful to track whether this package might need to be rebuilt when
401 source packages listed here have been updated, for example due to security
403 This field must be a comma-separated list of source package names with strict
404 ‘B<=>’ version relationships enclosed within parenthesis.
406 Supported since dpkg 1.21.3.
408 =item B<Built-For-Profiles:> I<profile-list> (obsolete)
410 This field used to specify a whitespace separated list of build profiles that
411 this binary packages was built with (since dpkg 1.17.2 until 1.18.18).
412 The information previously found in this field can now be found in the
413 B<.buildinfo> file, which supersedes it.
415 =item B<Auto-Built-Package:> I<reason-list>
417 This field specifies a whitespace separated list of reasons why this package
419 Binary packages marked with this field will not appear in the
420 I<debian/control> master source control file.
421 The only currently used reason is B<debug-symbols>.
423 =item B<Build-Ids:> I<elf-build-id-list>
425 This field specifies a whitespace separated list of ELF build-ids. These
426 are unique identifiers for semantically identical ELF objects, for each
427 of these within the package.
429 The format or the way to compute each build-id is not defined by design.
439 Maintainer: Wichert Akkerman <wakkerma@debian.org>
442 Pre-Depends: libc6 (>= 2.0.105)
445 Description: GNU grep, egrep and fgrep.
446 The GNU family of grep utilities may be the "fastest grep in the west".
447 GNU grep is based on a fast lazy-state deterministic matcher (about
448 twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-Gosper
449 search for a fixed string that eliminates impossible text from being
450 considered by the full regexp matcher without necessarily having to
451 look at every character. The result is typically many times faster
452 than Unix grep or egrep. (Regular expressions containing backreferencing
453 will run more slowly, however).
457 The B<Build-Ids> field uses a rather generic name out of its original
458 context within an ELF object, which serves a very specific purpose and
464 B<deb-src-control>(5),