deb-control.5 10 KB

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