deb-control.5 13 KB

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