deb-control.5 12 KB

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