deb-control.5 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  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 "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 \fIcontrol\fP file, which contains
  31. a number of fields, or comments when the line starts with \(oq\fB#\fP\(cq.
  32. Each 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 FIELDS
  45. .TP
  46. .BR Package: " \fIpackage-name\fP (required)"
  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. .BR Version: " \fIversion-string\fP (required)"
  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. .BR Maintainer: " \fIfullname-email\fP (required)"
  58. Should be in the format \(lqJoe Bloggs <jbloggs@foo.com>\(rq, 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. .BR Description: " \fIshort-description\fP (required)"
  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 \(oq\fB.\fP\(cq following the preceding space.
  71. .TP
  72. .BI Section: " section"
  73. This is a general field that gives the package a category based on the
  74. software that it installs.
  75. Some common sections are \fButils\fP, \fBnet\fP, \fBmail\fP, \fBtext\fP,
  76. \fBx11\fP, etc.
  77. .TP
  78. .BI Priority: " priority"
  79. Sets the importance of this package in relation to the system as a whole.
  80. Common priorities are \fBrequired\fP, \fBstandard\fP, \fBoptional\fP,
  81. \fBextra\fP, 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 Build\-Essential: " \fByes\fP|\fBno\fP"
  100. This field is usually only needed when the answer is \fByes\fP, and is
  101. commonly injected by the archive software.
  102. It denotes a package that is required when building other packages.
  103. .TP
  104. .BR Architecture: " \fIarch\fP|\fBall\fP"
  105. The architecture specifies which type of hardware this package was compiled
  106. for.
  107. Common architectures are \fBamd64\fP, \fBarmel\fP, \fBi386\fP, \fBpowerpc\fP,
  108. etc.
  109. Note that the
  110. .B all
  111. option is meant for packages that are architecture independent. Some examples
  112. of this are shell and Perl scripts, and documentation.
  113. .TP
  114. .BI Origin: " name"
  115. The name of the distribution this package is originating from.
  116. .TP
  117. .BI Bugs: " url"
  118. The \fIurl\fP of the bug tracking system for this package. The current
  119. used format is \fIbts-type\fP\fB://\fP\fIbts-address\fP, like
  120. \fB\%debbugs://bugs.debian.org\fP.
  121. .TP
  122. .BI Homepage: " url"
  123. The upstream project home page \fIurl\fP.
  124. .TP
  125. .BI Tag: " tag-list"
  126. List of tags describing the qualities of the package. The description and
  127. list of supported tags can be found in the \fB\%debtags\fP package.
  128. .TP
  129. .BR Multi\-Arch: " \fBsame\fP|\fBforeign\fP|\fBallowed\fP|\fBno\fP"
  130. This field is used to indicate how this package should behave on a multi-arch
  131. installations. The value \fBsame\fP means that the package is co-installable
  132. with itself, but it must not be used to satisfy the dependency of any package
  133. of a different architecture from itself.
  134. The value \fBforeign\fP means that the package is not co-installable with
  135. itself, but should be allowed to satisfy a non-arch-qualified dependency of
  136. a package of a different arch from itself (if a dependency has an explicit
  137. arch-qualifier then the value \fBforeign\fP is ignored).
  138. The value \fBallowed\fP allows reverse-dependencies to indicate in their
  139. \fBDepends\fP field that they accept a package from a foreign architecture by
  140. qualifying the package name with \fB:any\fP, but has no effect otherwise.
  141. The value \fBno\fP is the default when the field is omitted, in which case
  142. adding the field with an explicit \fBno\fP value is generally not needed.
  143. .TP
  144. .BI Source: " source-name"
  145. The name of the source package that this binary package came from, if
  146. different than the name of the package itself.
  147. .TP
  148. .BI Subarchitecture: " value"
  149. .TQ
  150. .BI Kernel\-Version: " value"
  151. .TQ
  152. .BI Installer\-Menu\-Item: " value"
  153. These fields are used by the debian\-installer and are usually not needed.
  154. See /usr/share/doc/debian\-installer/devel/modules.txt from the
  155. .B debian\-installer
  156. package for more details about them.
  157. .TP
  158. .BI Depends: " package-list"
  159. List of packages that are required for this package to provide a
  160. non-trivial amount of functionality. The package maintenance software
  161. will not allow a package to be installed if the packages listed in its
  162. .B Depends
  163. field aren't installed (at least not without using the force options).
  164. In an installation, the postinst scripts of packages listed in \fBDepends\fP
  165. fields are run before those of the packages which depend on them. On the
  166. opposite, in a removal, the prerm script of a package is run before
  167. those of the packages listed in its \fBDepends\fP field.
  168. .TP
  169. .BI Pre\-Depends: " package-list"
  170. List of packages that must be installed
  171. .B and
  172. configured before this one can be installed. This is usually used in the
  173. case where this package requires another package for running its preinst
  174. script.
  175. .TP
  176. .BI Recommends: " package-list"
  177. Lists packages that would be found together with this one in all but
  178. unusual installations. The package maintenance software will warn the
  179. user if they install a package without those listed in its
  180. .B Recommends
  181. field.
  182. .TP
  183. .BI Suggests: " package-list"
  184. Lists packages that are related to this one and can perhaps enhance
  185. its usefulness, but without which installing this package is perfectly
  186. reasonable.
  187. .LP
  188. The syntax of
  189. .BR Depends ,
  190. .BR Pre\-Depends ,
  191. .B Recommends
  192. and
  193. .B Suggests
  194. fields is a list of groups of alternative packages. Each group is a list
  195. of packages separated by vertical bar (or \(lqpipe\(rq) symbols,
  196. \(oq\fB|\fP\(cq.
  197. The groups are separated by commas.
  198. Commas are to be read as \(lqAND\(rq, and pipes as \(lqOR\(rq, with pipes
  199. binding more tightly.
  200. Each package name is optionally followed by an architecture qualifier
  201. appended after a colon \(oq\fB:\fP\(cq, optionally followed by a version
  202. number specification in parentheses.
  203. .LP
  204. An architecture qualifier name can be a real Debian architecture name
  205. (since dpkg 1.16.5) or \fBany\fP (since dpkg 1.16.2).
  206. If omitted, the default is the current binary package architecture.
  207. A real Debian architecture name will match exactly that architecture for
  208. that package name, \fBany\fP will match any architecture for that package
  209. name if the package has been marked as \fBMulti\-Arch: allowed\fP.
  210. .LP
  211. A version number may start with a \(oq\fB>>\fP\(cq, in which case any later
  212. version will match, and may specify or omit the Debian packaging revision
  213. (separated by a hyphen).
  214. Accepted version relationships are \(oq\fB>>\fP\(cq for greater than,
  215. \(oq\fB<<\fP\(cq for less than, \(oq\fB>=\fP\(cq for greater than or
  216. equal to, \(oq\fB<=\fP\(cq for less than or equal to, and \(oq\fB=\fP\(cq
  217. for equal to.
  218. .TP
  219. .BI Breaks: " package-list"
  220. Lists packages that this one breaks, for example by exposing bugs
  221. when the named packages rely on this one. The package maintenance
  222. software will not allow broken packages to be configured; generally
  223. the resolution is to upgrade the packages named in a
  224. .B Breaks
  225. field.
  226. .TP
  227. .BI Conflicts: " package-list"
  228. Lists packages that conflict with this one, for example by containing
  229. files with the same names. The package maintenance software will not
  230. allow conflicting packages to be installed at the same time. Two
  231. conflicting packages should each include a
  232. .B \%Conflicts
  233. line mentioning the other.
  234. .TP
  235. .BI Replaces: " package-list"
  236. List of packages files from which this one replaces. This is used for
  237. allowing this package to overwrite the files of another package and
  238. is usually used with the
  239. .B Conflicts
  240. field to force removal of the other package, if this one also has the
  241. same files as the conflicted package.
  242. .LP
  243. The syntax of
  244. .BR Breaks ,
  245. .B Conflicts
  246. and
  247. .B Replaces
  248. is a list of package names, separated by commas (and optional whitespace).
  249. In the
  250. .B Breaks
  251. and
  252. .B Conflicts
  253. fields, the comma should be read as \(lqOR\(rq.
  254. An optional architecture qualifier can also be appended to the package name
  255. with the same syntax as above, but the default is \fBany\fP instead of the
  256. binary package architecture.
  257. An optional version can also be given with the same syntax as above for the
  258. .BR Breaks ,
  259. .B Conflicts
  260. and
  261. .B Replaces
  262. fields.
  263. .
  264. .TP
  265. .BI Provides: " package-list"
  266. This is a list of virtual packages that this one provides.
  267. Usually this is used in the case of several packages all providing the
  268. same service.
  269. For example, sendmail and exim can serve as a mail server, so they
  270. provide a common package (\(lqmail\-transport\-agent\(rq) on which
  271. other packages can depend.
  272. This will allow sendmail or exim to serve as a valid option to satisfy
  273. the dependency.
  274. This prevents the packages that depend on a mail server from having to
  275. know the package names for all of them, and using \(oq\fB|\fP\(cq to
  276. separate the list.
  277. .LP
  278. The syntax of
  279. .B Provides
  280. is a list of package names, separated by commas (and optional whitespace).
  281. An optional architecture qualifier can also be appended to the package
  282. name with the same syntax as above.
  283. If omitted, the default is the current binary package architecture.
  284. An optional exact (equal to) version can also be given with the same
  285. syntax as above (honored since dpkg 1.17.11).
  286. .
  287. .TP
  288. .BI Built\-Using: " package-list"
  289. This field lists extra source packages that were used during the build of this
  290. binary package. This is an indication to the archive maintenance software that
  291. these extra source packages must be kept whilst this binary package is
  292. maintained.
  293. This field must be a list of source package names with strict \(oq\fB=\fP\(cq
  294. version relationships. Note that the archive maintenance software is likely to
  295. refuse to accept an upload which declares a
  296. .B Built\-Using
  297. relationship which cannot be satisfied within the archive.
  298. .
  299. .SH EXAMPLE
  300. .\" .RS
  301. .nf
  302. # Comment
  303. Package: grep
  304. Essential: yes
  305. Priority: required
  306. Section: base
  307. Maintainer: Wichert Akkerman <wakkerma@debian.org>
  308. Architecture: sparc
  309. Version: 2.4\-1
  310. Pre\-Depends: libc6 (>= 2.0.105)
  311. Provides: rgrep
  312. Conflicts: rgrep
  313. Description: GNU grep, egrep and fgrep.
  314. The GNU family of grep utilities may be the "fastest grep in the west".
  315. GNU grep is based on a fast lazy-state deterministic matcher (about
  316. twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-Gosper
  317. search for a fixed string that eliminates impossible text from being
  318. considered by the full regexp matcher without necessarily having to
  319. look at every character. The result is typically many times faster
  320. than Unix grep or egrep. (Regular expressions containing backreferencing
  321. will run more slowly, however).
  322. .fi
  323. .\" .RE
  324. .
  325. .SH SEE ALSO
  326. .BR deb (5),
  327. .BR deb\-version (5),
  328. .BR debtags (1),
  329. .BR dpkg (1),
  330. .BR dpkg\-deb (1).