deb-control.man 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. .\" dpkg manual page - deb-control(5)
  2. .\"
  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>
  8. .\"
  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.
  13. .\"
  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.
  18. .\"
  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/>.
  21. .
  22. .TH deb\-control 5 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
  23. .nh
  24. .SH NAME
  25. deb\-control \- Debian binary packages' master control file format
  26. .
  27. .SH SYNOPSIS
  28. control
  29. .
  30. .SH DESCRIPTION
  31. Each Debian binary package contains the master \fIcontrol\fP file, which
  32. contains a number of fields.
  33. Each field begins with a tag, such as
  34. .B Package
  35. or
  36. .B Version
  37. (case insensitive), followed by a colon, and the body of the field.
  38. Fields are delimited only by field tags. In other words, field text
  39. may be multiple lines in length, but the installation tools will
  40. generally join lines when processing the body of the field (except
  41. in the case of the
  42. .B Description
  43. field, see below).
  44. .
  45. .SH FIELDS
  46. .TP
  47. .BR Package: " \fIpackage-name\fP (required)"
  48. The value of this field determines the package name, and is used to
  49. generate file names by most installation tools.
  50. .TP
  51. .BR Version: " \fIversion-string\fP (required)"
  52. Typically, this is the original package's version number in whatever form
  53. the program's author uses. It may also include a Debian revision number
  54. (for non-native packages). The exact format and sorting algorithm
  55. are described in
  56. .BR deb\-version (5).
  57. .TP
  58. .BR Maintainer: " \fIfullname-email\fP (recommended)"
  59. Should be in the format “Joe Bloggs <jbloggs@foo.com>”, and is typically
  60. the person who created the package, as opposed to the author of the
  61. software that was packaged.
  62. .TP
  63. .BR Description: " \fIshort-description\fP (recommended)"
  64. .TQ
  65. .BI " " "long-description"
  66. .br
  67. The format for the package description is a short brief summary on the
  68. first line (after the \fBDescription\fP field). The following lines should be
  69. used as a longer, more detailed description. Each line of the long description
  70. must be preceded by a space, and blank lines in the long description must
  71. contain a single ‘\fB.\fP’ following the preceding space.
  72. .TP
  73. .BI Section: " section"
  74. This is a general field that gives the package a category based on the
  75. software that it installs.
  76. Some common sections are \fButils\fP, \fBnet\fP, \fBmail\fP, \fBtext\fP,
  77. \fBx11\fP, etc.
  78. .TP
  79. .BI Priority: " priority"
  80. Sets the importance of this package in relation to the system as a whole.
  81. Common priorities are \fBrequired\fP, \fBstandard\fP, \fBoptional\fP,
  82. \fBextra\fP, etc.
  83. .LP
  84. The
  85. .B Section
  86. and
  87. .B Priority
  88. fields usually have a defined set of accepted values based on the specific
  89. distribution policy.
  90. .
  91. .TP
  92. .BR Installed\-Size: " size"
  93. The approximate total size of the package's installed files, in KiB units.
  94. .
  95. .TP
  96. .BR Essential: " \fByes\fP|\fBno\fP"
  97. This field is usually only needed when the answer is \fByes\fP. It denotes
  98. a package that is required for proper operation of the system. Dpkg
  99. or any other installation tool will not allow an
  100. .B Essential
  101. package to be removed (at least not without using one of the force options).
  102. .TP
  103. .BR Build\-Essential: " \fByes\fP|\fBno\fP"
  104. This field is usually only needed when the answer is \fByes\fP, and is
  105. commonly injected by the archive software.
  106. It denotes a package that is required when building other packages.
  107. .TP
  108. .BR Architecture: " \fIarch\fP|\fBall\fP (recommended)"
  109. The architecture specifies which type of hardware this package was compiled
  110. for.
  111. Common architectures are \fBamd64\fP, \fBarmel\fP, \fBi386\fP, \fBpowerpc\fP,
  112. etc.
  113. Note that the
  114. .B all
  115. value is meant for packages that are architecture independent.
  116. Some examples of this are shell and Perl scripts, and documentation.
  117. .TP
  118. .BI Origin: " name"
  119. The name of the distribution this package is originating from.
  120. .TP
  121. .BI Bugs: " url"
  122. The \fIurl\fP of the bug tracking system for this package. The current
  123. used format is \fIbts-type\fP\fB://\fP\fIbts-address\fP, like
  124. \fBdebbugs://bugs.debian.org\fP.
  125. .TP
  126. .BI Homepage: " url"
  127. The upstream project home page \fIurl\fP.
  128. .TP
  129. .BI Tag: " tag-list"
  130. List of tags describing the qualities of the package. The description and
  131. list of supported tags can be found in the \fBdebtags\fP package.
  132. .TP
  133. .BR Multi\-Arch: " \fBno\fP|\fBsame\fP|\fBforeign\fP|\fBallowed\fP"
  134. This field is used to indicate how this package should behave on a multi-arch
  135. installations.
  136. .RS
  137. .TP
  138. .B no
  139. This value is the default when the field is omitted, in which case
  140. adding the field with an explicit \fBno\fP value is generally not needed.
  141. .TP
  142. .B same
  143. This package is co-installable with itself, but it must not be used to
  144. satisfy the dependency of any package of a different architecture from
  145. itself.
  146. .TP
  147. .B foreign
  148. This package is not co-installable with itself, but should be allowed to
  149. satisfy a non-arch-qualified dependency of a package of a different arch
  150. from itself (if a dependency has an explicit arch-qualifier then the
  151. value \fBforeign\fP is ignored).
  152. .TP
  153. .B allowed
  154. This allows reverse-dependencies to indicate in their \fBDepends\fP
  155. field that they accept this package from a foreign architecture by
  156. qualifying the package name with \fB:any\fP, but has no effect otherwise.
  157. .RE
  158. .TP
  159. .BR Source: " \fIsource-name\fP [\fB(\fP\fIsource-version\fP\fB)\fP]"
  160. The name of the source package that this binary package came from, if it is
  161. different than the name of the package itself.
  162. If the source version differs from the binary version, then the
  163. \fIsource-name\fP will be followed by a \fIsource-version\fP in parenthesis.
  164. This can happen for example on a binary-only non-maintainer upload, or when
  165. setting a different binary version via «\fBdpkg\-gencontrol \-v\fP».
  166. .TP
  167. .BI Subarchitecture: " value"
  168. .TQ
  169. .BI Kernel\-Version: " value"
  170. .TQ
  171. .BI Installer\-Menu\-Item: " value"
  172. These fields are used by the debian\-installer and are usually not needed.
  173. See /usr/share/doc/debian\-installer/devel/modules.txt from the
  174. .B debian\-installer
  175. package for more details about them.
  176. .TP
  177. .BI Depends: " package-list"
  178. List of packages that are required for this package to provide a
  179. non-trivial amount of functionality. The package maintenance software
  180. will not allow a package to be installed if the packages listed in its
  181. .B Depends
  182. field aren't installed (at least not without using the force options).
  183. In an installation, the postinst scripts of packages listed in \fBDepends\fP
  184. fields are run before those of the packages which depend on them. On the
  185. opposite, in a removal, the prerm script of a package is run before
  186. those of the packages listed in its \fBDepends\fP field.
  187. .TP
  188. .BI Pre\-Depends: " package-list"
  189. List of packages that must be installed
  190. .B and
  191. configured before this one can be installed. This is usually used in the
  192. case where this package requires another package for running its preinst
  193. script.
  194. .TP
  195. .BI Recommends: " package-list"
  196. Lists packages that would be found together with this one in all but
  197. unusual installations. The package maintenance software will warn the
  198. user if they install a package without those listed in its
  199. .B Recommends
  200. field.
  201. .TP
  202. .BI Suggests: " package-list"
  203. Lists packages that are related to this one and can perhaps enhance
  204. its usefulness, but without which installing this package is perfectly
  205. reasonable.
  206. .LP
  207. The syntax of
  208. .BR Depends ,
  209. .BR Pre\-Depends ,
  210. .B Recommends
  211. and
  212. .B Suggests
  213. fields is a list of groups of alternative packages. Each group is a list
  214. of packages separated by vertical bar (or “pipe”) symbols,
  215. ‘\fB|\fP’.
  216. The groups are separated by commas.
  217. Commas are to be read as “AND”, and pipes as “OR”, with pipes
  218. binding more tightly.
  219. Each package name is optionally followed by an architecture qualifier
  220. appended after a colon ‘\fB:\fP’, optionally followed by a version
  221. number specification in parentheses.
  222. .LP
  223. An architecture qualifier name can be a real Debian architecture name
  224. (since dpkg 1.16.5) or \fBany\fP (since dpkg 1.16.2).
  225. If omitted, the default is the current binary package architecture.
  226. A real Debian architecture name will match exactly that architecture for
  227. that package name, \fBany\fP will match any architecture for that package
  228. name if the package has been marked as \fBMulti\-Arch: allowed\fP.
  229. .LP
  230. A version number may start with a ‘\fB>>\fP’, in which case any later
  231. version will match, and may specify or omit the Debian packaging revision
  232. (separated by a hyphen).
  233. Accepted version relationships are ‘\fB>>\fP’ for greater than,
  234. ‘\fB<<\fP’ for less than, ‘\fB>=\fP’ for greater than or
  235. equal to, ‘\fB<=\fP’ for less than or equal to, and ‘\fB=\fP’
  236. for equal to.
  237. .TP
  238. .BI Breaks: " package-list"
  239. Lists packages that this one breaks, for example by exposing bugs
  240. when the named packages rely on this one. The package maintenance
  241. software will not allow broken packages to be configured; generally
  242. the resolution is to upgrade the packages named in a
  243. .B Breaks
  244. field.
  245. .TP
  246. .BI Conflicts: " package-list"
  247. Lists packages that conflict with this one, for example by containing
  248. files with the same names. The package maintenance software will not
  249. allow conflicting packages to be installed at the same time. Two
  250. conflicting packages should each include a
  251. .B Conflicts
  252. line mentioning the other.
  253. .TP
  254. .BI Replaces: " package-list"
  255. List of packages files from which this one replaces. This is used for
  256. allowing this package to overwrite the files of another package and
  257. is usually used with the
  258. .B Conflicts
  259. field to force removal of the other package, if this one also has the
  260. same files as the conflicted package.
  261. .LP
  262. The syntax of
  263. .BR Breaks ,
  264. .B Conflicts
  265. and
  266. .B Replaces
  267. is a list of package names, separated by commas (and optional whitespace).
  268. In the
  269. .B Breaks
  270. and
  271. .B Conflicts
  272. fields, the comma should be read as “OR”.
  273. An optional architecture qualifier can also be appended to the package name
  274. with the same syntax as above, but the default is \fBany\fP instead of the
  275. binary package architecture.
  276. An optional version can also be given with the same syntax as above for the
  277. .BR Breaks ,
  278. .B Conflicts
  279. and
  280. .B Replaces
  281. fields.
  282. .
  283. .TP
  284. .BI Provides: " package-list"
  285. This is a list of virtual packages that this one provides.
  286. Usually this is used in the case of several packages all providing the
  287. same service.
  288. For example, sendmail and exim can serve as a mail server, so they
  289. provide a common package (“mail\-transport\-agent”) on which
  290. other packages can depend.
  291. This will allow sendmail or exim to serve as a valid option to satisfy
  292. the dependency.
  293. This prevents the packages that depend on a mail server from having to
  294. know the package names for all of them, and using ‘\fB|\fP’ to
  295. separate the list.
  296. .LP
  297. The syntax of
  298. .B Provides
  299. is a list of package names, separated by commas (and optional whitespace).
  300. An optional architecture qualifier can also be appended to the package
  301. name with the same syntax as above.
  302. If omitted, the default is the current binary package architecture.
  303. An optional exact (equal to) version can also be given with the same
  304. syntax as above (honored since dpkg 1.17.11).
  305. .
  306. .TP
  307. .BI Built\-Using: " package-list"
  308. This field lists extra source packages that were used during the build of this
  309. binary package. This is an indication to the archive maintenance software that
  310. these extra source packages must be kept whilst this binary package is
  311. maintained.
  312. This field must be a list of source package names with strict ‘\fB=\fP’
  313. version relationships. Note that the archive maintenance software is likely to
  314. refuse to accept an upload which declares a
  315. .B Built\-Using
  316. relationship which cannot be satisfied within the archive.
  317. .
  318. .TP
  319. .BI Built\-For\-Profiles: " profile-list (obsolete)"
  320. This field used to specify a whitespace separated list of build profiles that
  321. this binary packages was built with (since dpkg 1.17.2 until 1.18.18).
  322. The information previously found in this field can now be found in the
  323. \fB.buildinfo\fP file, which supersedes it.
  324. .
  325. .TP
  326. .BI Auto\-Built\-Package: " reason-list"
  327. This field specifies a whitespace separated list of reasons why this package
  328. was auto-generated.
  329. Binary packages marked with this field will not appear in the
  330. \fIdebian/control\fP master source control file.
  331. The only currently used reason is \fBdebug\-symbols\fP.
  332. .
  333. .SH EXAMPLE
  334. .\" .RS
  335. .nf
  336. # Comment
  337. Package: grep
  338. Essential: yes
  339. Priority: required
  340. Section: base
  341. Maintainer: Wichert Akkerman <wakkerma@debian.org>
  342. Architecture: sparc
  343. Version: 2.4\-1
  344. Pre\-Depends: libc6 (>= 2.0.105)
  345. Provides: rgrep
  346. Conflicts: rgrep
  347. Description: GNU grep, egrep and fgrep.
  348. The GNU family of grep utilities may be the "fastest grep in the west".
  349. GNU grep is based on a fast lazy-state deterministic matcher (about
  350. twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-Gosper
  351. search for a fixed string that eliminates impossible text from being
  352. considered by the full regexp matcher without necessarily having to
  353. look at every character. The result is typically many times faster
  354. than Unix grep or egrep. (Regular expressions containing backreferencing
  355. will run more slowly, however).
  356. .fi
  357. .\" .RE
  358. .
  359. .SH SEE ALSO
  360. .BR deb (5),
  361. .BR deb\-version (5),
  362. .BR debtags (1),
  363. .BR dpkg (1),
  364. .BR dpkg\-deb (1).