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 package 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 B<debian/control>
36 template source control file in Debian source packages,
37 see L<deb-src-control(5)>.
39 This file contains a number of fields.
40 Each field begins with a tag, such as
44 (case insensitive), followed by a colon, and the body of the field
45 (case sensitive unless stated otherwise).
46 Fields are delimited only by field tags.
47 In other words, field text
48 may be multiple lines in length, but the installation tools will
49 generally join lines when processing the body of the field (except
58 =item B<Package:> I<package-name> (required)
60 The value of this field determines the package name, and is used to
61 generate file names by most installation tools.
63 =item B<Package-Type:> B<deb>|B<udeb>|I<type>
65 This field defines the type of the package.
66 B<udeb> is for size-constrained packages used by the debian installer.
67 B<deb> is the default value, it is assumed if the field is absent.
68 More types might be added in the future.
70 =item B<Version:> I<version-string> (required)
72 Typically, this is the original package's version number in whatever form
73 the program's author uses.
74 It may also include a Debian revision number (for non-native packages).
75 The exact format and sorting algorithm
79 =item B<Maintainer:> I<fullname-email> (recommended)
81 Should be in the format “Joe Bloggs E<lt>jbloggs@foo.comE<gt>”, and is typically
82 the person who created the package, as opposed to the author of the
83 software that was packaged.
85 =item B<Description:> I<short-description> (recommended)
87 =item S< >I<long-description>
89 The format for the package description is a short brief summary on the
90 first line (after the B<Description> field).
91 The following lines should be used as a longer, more detailed description.
92 Each line of the long description
93 must be preceded by a space, and blank lines in the long description must
94 contain a single ‘B<.>’ following the preceding space.
96 =item B<Section:> I<section>
98 This is a general field that gives the package a category based on the
99 software that it installs.
100 Some common sections are B<utils>, B<net>, B<mail>, B<text>,
103 =item B<Priority:> I<priority>
105 Sets the importance of this package in relation to the system as a whole.
106 Common priorities are B<required>, B<standard>, B<optional>,
115 fields usually have a defined set of accepted values based on the specific
120 =item B<Installed-Size:> I<size>
122 The approximate total size of the package's installed files, in KiB units.
123 The algorithm to compute the size is described in L<deb-substvars(5)>.
125 =item B<Protected:> B<yes>|B<no>
127 This field is usually only needed when the answer is B<yes>.
128 It denotes a package that is required mostly for proper booting of the system
129 or used for custom system-local meta-packages.
130 L<dpkg(1)> or any other installation tool will not allow a B<Protected>
131 package to be removed (at least not without using one of the force options).
133 Supported since dpkg 1.20.1.
135 =item B<Essential:> B<yes>|B<no>
137 This field is usually only needed when the answer is B<yes>.
138 It denotes a package that is required for the packaging system, for
139 proper operation of the system in general or during boot (although the latter
140 should be converted to B<Protected> field instead).
141 L<dpkg(1)> or any other installation tool will not allow an B<Essential>
142 package to be removed (at least not without using one of the force options).
144 =item B<Build-Essential:> B<yes>|B<no>
146 This field is usually only needed when the answer is B<yes>, and is
147 commonly injected by the archive software.
148 It denotes a package that is required when building other packages.
150 =item B<Architecture:> I<arch>|B<all> (required)
152 The architecture specifies which type of hardware this package was compiled
154 Common architectures are B<amd64>, B<armel>, B<i386>, B<powerpc>,
158 value is meant for packages that are architecture independent.
159 Some examples of this are shell and Perl scripts, and documentation.
161 =item B<Origin:> I<name>
163 The name of the distribution this package is originating from.
165 =item B<Bugs:> I<url>
167 The I<url> of the bug tracking system for this package.
169 used format is I<bts-type>B<://>I<bts-address>, like
170 B<debbugs://bugs.debian.org>.
172 =item B<Homepage:> I<url>
174 The upstream project home page I<url>.
176 =item B<Tag:> I<tag-list>
178 List of tags describing the qualities of the package.
180 list of supported tags can be found in the B<debtags> package.
182 =item B<Multi-Arch:> B<no>|B<same>|B<foreign>|B<allowed>
184 This field is used to indicate how this package should behave on a multi-arch
191 This value is the default when the field is omitted, in which case
192 adding the field with an explicit B<no> value is generally not needed.
196 This package is co-installable with itself, but it must not be used to
197 satisfy the dependency of any package of a different architecture from
202 This package is not co-installable with itself, but should be allowed to
203 satisfy a non-arch-qualified dependency of a package of a different arch
204 from itself (if a dependency has an explicit arch-qualifier then the
205 value B<foreign> is ignored).
209 This allows reverse-dependencies to indicate in their B<Depends>
210 field that they accept this package from a foreign architecture by
211 qualifying the package name with B<:any>, but has no effect otherwise.
215 =item B<Source:> I<source-name> [B<(>I<source-version>B<)>]
217 The name of the source package that this binary package came from, if it is
218 different than the name of the package itself.
219 If the source version differs from the binary version, then the
220 I<source-name> will be followed by a I<source-version> in parenthesis.
221 This can happen for example on a binary-only non-maintainer upload, or when
222 setting a different binary version via «B<dpkg-gencontrol -v>».
224 =item B<Subarchitecture:> I<value>
226 =item B<Kernel-Version:> I<value>
228 =item B<Installer-Menu-Item:> I<value>
230 These fields are used by the debian-installer and are usually not needed.
231 For more details about them, see
232 L<https://salsa.debian.org/installer-team/debian-installer/-/raw/master/doc/devel/modules.txt>.
234 =item B<Depends:> I<package-list>
236 List of packages that are required for this package to provide a
237 non-trivial amount of functionality.
238 The package maintenance software
239 will not allow a package to be installed if the packages listed in its
241 field aren't installed (at least not without using the force options).
242 In an installation, the postinst scripts of packages listed in B<Depends>
243 fields are run before those of the packages which depend on them.
245 opposite, in a removal, the prerm script of a package is run before
246 those of the packages listed in its B<Depends> field.
248 =item B<Pre-Depends:> I<package-list>
250 List of packages that must be installed
252 configured before this one can be installed.
253 This is usually used in the
254 case where this package requires another package for running its preinst
257 =item B<Recommends:> I<package-list>
259 Lists packages that would be found together with this one in all but
260 unusual installations.
261 The package maintenance software will warn the
262 user if they install a package without those listed in its
266 =item B<Suggests:> I<package-list>
268 Lists packages that are related to this one and can perhaps enhance
269 its usefulness, but without which installing this package is perfectly
280 fields is a list of groups of alternative packages.
282 of packages separated by vertical bar (or “pipe”) symbols,
284 The groups are separated by commas.
285 Commas are to be read as “AND”, and pipes as “OR”, with pipes
286 binding more tightly.
287 Each package name is optionally followed by an architecture qualifier
288 appended after a colon ‘B<:>’, optionally followed by a version
289 number specification in parentheses.
291 An architecture qualifier name can be a real Debian architecture name
292 (since dpkg 1.16.5) or B<any> (since dpkg 1.16.2).
293 If omitted, the default is the current binary package architecture.
294 A real Debian architecture name will match exactly that architecture for
295 that package name, B<any> will match any architecture for that package
296 name if the package has been marked as B<Multi-Arch: allowed>.
298 A version number may start with a ‘B<E<gt>E<gt>>’, in which case any later
299 version will match, and may specify or omit the Debian packaging revision
300 (separated by a hyphen).
301 Accepted version relationships are ‘B<E<gt>E<gt>>’ for greater than,
302 ‘B<E<lt>E<lt>>’ for less than, ‘B<E<gt>=>’ for greater than or
303 equal to, ‘B<E<lt>=>’ for less than or equal to, and ‘B<=>’
308 =item B<Breaks:> I<package-list>
310 Lists packages that this one breaks, for example by exposing bugs
311 when the named packages rely on this one.
312 The package maintenance
313 software will not allow broken packages to be configured; generally
314 the resolution is to upgrade the packages named in a
318 =item B<Conflicts:> I<package-list>
320 Lists packages that conflict with this one, for example by containing
321 files with the same names.
322 The package maintenance software will not allow conflicting packages to be
323 installed at the same time.
325 conflicting packages should each include a
327 line mentioning the other.
329 =item B<Replaces:> I<package-list>
331 List of packages files from which this one replaces.
333 allowing this package to overwrite the files of another package and
334 is usually used with the
336 field to force removal of the other package, if this one also has the
337 same files as the conflicted package.
346 is a list of package names, separated by commas (and optional whitespace).
351 fields, the comma should be read as “OR”.
352 An optional architecture qualifier can also be appended to the package name
353 with the same syntax as above, but the default is B<any> instead of the
354 binary package architecture.
355 An optional version can also be given with the same syntax as above for the
364 =item B<Enhances:> I<package-list>
366 This is a list of packages that this one enhances.
367 It is similar to B<Suggests> but in the opposite direction.
369 =item B<Provides:> I<package-list>
371 This is a list of virtual packages that this one provides.
372 Usually this is used in the case of several packages all providing the
374 For example, sendmail and exim can serve as a mail server, so they
375 provide a common package (“mail-transport-agent”) on which
376 other packages can depend.
377 This will allow sendmail or exim to serve as a valid option to satisfy
379 This prevents the packages that depend on a mail server from having to
380 know the package names for all of them, and using ‘B<|>’ to
387 is a list of package names, separated by commas (and optional whitespace).
388 An optional architecture qualifier can also be appended to the package
389 name with the same syntax as above.
390 If omitted, the default is the current binary package architecture.
391 An optional exact (equal to) version can also be given with the same
392 syntax as above (honored since dpkg 1.17.11).
396 =item B<Built-Using:> I<package-list>
398 This dependency field lists extra source packages that were used during the
399 build of this binary package, for license compliance purposes.
400 This is an indication to the archive maintenance software that these extra
401 source packages must be kept whilst this binary package is maintained.
402 This field must be a comma-separated list of source package names with strict
403 ‘B<=>’ version relationships enclosed within parenthesis.
404 Note that the archive maintenance software is likely to refuse to accept an
405 upload which declares a B<Built-Using> relationship which cannot be satisfied
408 =item B<Static-Built-Using:> I<package-list>
410 This dependency field lists extra source packages that were used during the
411 build of this binary package, for static building purposes (for example
412 linking against static libraries, builds for source-centered languages such
413 as Go or Rust, usage of header-only C/C++ libraries, injecting data blobs
415 This is useful to track whether this package might need to be rebuilt when
416 source packages listed here have been updated, for example due to security
418 This field must be a comma-separated list of source package names with strict
419 ‘B<=>’ version relationships enclosed within parenthesis.
421 Supported since dpkg 1.21.3.
423 =item B<Built-For-Profiles:> I<profile-list> (obsolete)
425 This field used to specify a whitespace separated list of build profiles that
426 this binary packages was built with (since dpkg 1.17.2 until 1.18.18).
427 The information previously found in this field can now be found in the
428 B<.buildinfo> file, which supersedes it.
430 =item B<Auto-Built-Package:> I<reason-list>
432 This field specifies a whitespace separated list of reasons why this package
434 Binary packages marked with this field will not appear in the
435 I<debian/control> template source control file.
436 The only currently used reason is B<debug-symbols>.
438 =item B<Build-Ids:> I<elf-build-id-list>
440 This field specifies a whitespace separated list of ELF build-ids.
442 are unique identifiers for semantically identical ELF objects, for each
443 of these within the package.
445 The format or the way to compute each build-id is not defined by design.
455 Maintainer: Wichert Akkerman <wakkerma@debian.org>
458 Pre-Depends: libc6 (>= 2.0.105)
461 Description: GNU grep, egrep and fgrep.
462 The GNU family of grep utilities may be the "fastest grep in the west".
463 GNU grep is based on a fast lazy-state deterministic matcher (about
464 twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-Gosper
465 search for a fixed string that eliminates impossible text from being
466 considered by the full regexp matcher without necessarily having to
467 look at every character. The result is typically many times faster
468 than Unix grep or egrep. (Regular expressions containing backreferencing
469 will run more slowly, however).
473 The B<Build-Ids> field uses a rather generic name out of its original
474 context within an ELF object, which serves a very specific purpose and
480 L<deb-src-control(5)>,