deb-control.5 12 KB

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