deb-control.5 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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 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 \(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. .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 \(oq\fB.\fP\(cq 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.
  77. Some common sections are \fButils\fP, \fBnet\fP, \fBmail\fP, \fBtext\fP,
  78. \fBx11\fP, etc.
  79. .TP
  80. .BI Priority: " priority"
  81. Sets the importance of this package in relation to the system as a whole.
  82. Common priorities are \fBrequired\fP, \fBstandard\fP, \fBoptional\fP,
  83. \fBextra\fP, etc.
  84. .LP
  85. In Debian, the
  86. .B Section
  87. and
  88. .B Priority
  89. fields have a defined set of accepted values based on the Policy Manual.
  90. A list of these values can be obtained from the latest version of the
  91. .B debian\-policy
  92. package.
  93. .TP
  94. .BR Essential: " \fByes\fP|\fBno\fP"
  95. This field is usually only needed when the answer is \fByes\fP. It denotes
  96. a package that is required for proper operation of the system. Dpkg
  97. or any other installation tool will not allow an
  98. .B Essential
  99. package to be removed (at least not without using one of the force options).
  100. .TP
  101. .BR Architecture: " \fIarch\fP|\fBall\fP"
  102. The architecture specifies which type of hardware this package was compiled
  103. for.
  104. Common architectures are \fBamd64\fP, \fBarmel\fP, \fBi386\fP, \fBpowerpc\fP,
  105. etc.
  106. Note that the
  107. .B all
  108. option is meant for packages that are architecture independent. Some examples
  109. of this are shell and Perl scripts, and documentation.
  110. .TP
  111. .BI Origin: " name"
  112. The name of the distribution this package is originating from.
  113. .TP
  114. .BI Bugs: " url"
  115. The \fIurl\fP of the bug tracking system for this package. The current
  116. used format is \fIbts-type\fP\fB://\fP\fIbts-address\fP, like
  117. \fB\%debbugs://bugs.debian.org\fP.
  118. .TP
  119. .BI Homepage: " url"
  120. The upstream project home page \fIurl\fP.
  121. .TP
  122. .BI Tag: " tag-list"
  123. List of tags describing the qualities of the package. The description and
  124. list of supported tags can be found in the \fB\%debtags\fP package.
  125. .TP
  126. .BR Multi\-Arch: " \fBsame\fP|\fBforeign\fP|\fBallowed\fP|\fBno\fP"
  127. This field is used to indicate how this package should behave on a multi-arch
  128. installations. The value \fBsame\fP means that the package is co-installable
  129. with itself, but it must not be used to satisfy the dependency of any package
  130. of a different architecture from itself. The value \fBforeign\fP means that
  131. the package is not co-installable with itself, but should be allowed to
  132. satisfy the dependency of a package of a different arch from itself. The
  133. 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. .TP
  238. .BI Provides: " package-list"
  239. This is a list of virtual packages that this one provides. Usually this is
  240. used in the case of several packages all providing the same service.
  241. For example, sendmail and exim can serve as a mail server, so they
  242. provide a common package (\(lqmail\-transport\-agent\(rq) on which other
  243. packages can depend.
  244. This will allow sendmail or exim to serve as a valid option
  245. to satisfy the dependency. This prevents the packages that depend on a mail
  246. server from having to know the package names for all of them, and using
  247. \(oq\fB|\fP\(cq to separate the list.
  248. .LP
  249. The syntax of
  250. .BR Breaks ,
  251. .BR Conflicts ,
  252. .B Replaces
  253. and
  254. .B Provides
  255. is a list of package names, separated by commas (and optional whitespace).
  256. In the
  257. .B Breaks
  258. and
  259. .B Conflicts
  260. fields, the comma should be read as \(lqOR\(rq.
  261. An optional architecture qualifier can also be appended to the package name
  262. with the same syntax as above, but the default is \fBany\fP instead of the
  263. binary package architecture.
  264. An optional version can also be given with the same syntax as above for the
  265. .BR Breaks ,
  266. .B Conflicts
  267. and
  268. .B Replaces
  269. fields, and an optional exact (equal to) version can also be given with the
  270. same syntax as above for the \fBProvides\fP field (since dpkg 1.17.11).
  271. .
  272. .TP
  273. .BI Built\-Using: " package-list"
  274. This field lists extra source packages that were used during the build of this
  275. binary package. This is an indication to the archive maintenance software that
  276. these extra source packages must be kept whilst this binary package is
  277. maintained.
  278. This field must be a list of source package names with strict \(oq\fB=\fP\(cq
  279. version relationships. Note that the archive maintenance software is likely to
  280. refuse to accept an upload which declares a
  281. .B Built\-Using
  282. relationship which cannot be satisfied within the archive.
  283. .
  284. .SH EXAMPLE
  285. .\" .RS
  286. .nf
  287. # Comment
  288. Package: grep
  289. Essential: yes
  290. Priority: required
  291. Section: base
  292. Maintainer: Wichert Akkerman <wakkerma@debian.org>
  293. Architecture: sparc
  294. Version: 2.4\-1
  295. Pre\-Depends: libc6 (>= 2.0.105)
  296. Provides: rgrep
  297. Conflicts: rgrep
  298. Description: GNU grep, egrep and fgrep.
  299. The GNU family of grep utilities may be the "fastest grep in the west".
  300. GNU grep is based on a fast lazy-state deterministic matcher (about
  301. twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-Gosper
  302. search for a fixed string that eliminates impossible text from being
  303. considered by the full regexp matcher without necessarily having to
  304. look at every character. The result is typically many times faster
  305. than Unix grep or egrep. (Regular expressions containing backreferencing
  306. will run more slowly, however).
  307. .fi
  308. .\" .RE
  309. .
  310. .SH SEE ALSO
  311. .BR deb (5),
  312. .BR deb\-version (5),
  313. .BR debtags (1),
  314. .BR dpkg (1),
  315. .BR dpkg\-deb (1).