deb-control.5 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. .\" Author: Raul Miller
  2. .\" Includes text from the debian Guidelines by Ian Jackson, Ian Murdock
  3. .TH DEB-CONTROL 5 "January 2000" "Debian Project" "dpkg utilities"
  4. .SH NAME
  5. deb\-control \- Debian packages' master control file format
  6. .SH SYNOPSIS
  7. control
  8. .SH DESCRIPTION
  9. Each Debian package contains the master `control' file, which contains
  10. a number of fields. Each field begins with a tag, such as
  11. .B Package
  12. or
  13. .B Version
  14. (case insensitive), followed by a colon, and the body of the field.
  15. Fields are delimited only by field tags. In other words, field text
  16. may be multiple lines in length, but the installation tools will
  17. generally join lines when processing the body of the field (except
  18. in the case of the
  19. .B Description
  20. field, see below).
  21. .SH REQUIRED FIELDS
  22. .TP
  23. .BR "Package: " "<package name>"
  24. The value of this field determines the package name, and is used to
  25. generate file names by most installation tools.
  26. .TP
  27. .BR "Version: " "<version string>"
  28. Typically, this is the original package's version number in whatever form
  29. the program's author uses. It may also include a Debian revision number
  30. (for non-native packages). If both version and revision are supplied,
  31. they are seperated by a hyphen, `-'. For this reason, the original version
  32. may not have a hyphen in its version number.
  33. .TP
  34. .BR "Maintainer: " "<fullname email>"
  35. Should be in the format `Joe Bloggs <jbloggs@foo.com>', and is typically
  36. the person who created the package, as opposed to the author of the
  37. software that was packaged.
  38. .TP
  39. .BR "Description: " "<short description>"
  40. .BR " " "<long description>"
  41. .br
  42. The format for the package description is a short brief summary on the
  43. first line (after the "Description" field). The following lines can be
  44. used as a longer, more detailed description. Each line of the long description
  45. must be preceded by a space, and blank lines in the long desription must
  46. contain a single '.' following the preceding space.
  47. .SH OPTIONAL FIELDS
  48. .TP
  49. .BR "Section: " "<section>"
  50. This is a general field that gives the package a category based on the
  51. software that it installs. Some common sections are `utils', `net',
  52. `mail', `text', `x11' etc.
  53. .TP
  54. .BR "Priority: " "<priority>"
  55. Sets the importance of this package in relation to the system as a whole.
  56. Common priorities are `required', `standard', `optional', `extra' etc.
  57. .LP
  58. In Debian, the
  59. .B Section
  60. and
  61. .B Priority
  62. fields have a defined set of accepted values based on the Policy Manual.
  63. They are used to decide how the packages are layed out in the archive.
  64. A list of these can be obtained from the latest version of
  65. .B debian-policy
  66. package.
  67. .TP
  68. .BR "Essential: " "<yes|no>"
  69. This field is usually only needed when the answer is `yes'. It denotes
  70. a package that is required for proper operation of the system. Dpkg
  71. or any other installation tool will not allow an
  72. .B Essential
  73. package to be removed (at least not without using one of the force options).
  74. .TP
  75. .BR "Architecture: " "<arch|all>"
  76. The architecture specifies which type of hardware this package was compiled
  77. for. Common architectures are `i386', `m68k', `sparc', `alpha', `powerpc'
  78. etc. Note that the
  79. .B all
  80. option is meant for packages that are architecture independent. Some examples
  81. of this are shell or Perl scripts, or documentation.
  82. .TP
  83. .BR "Source: " "<source name>"
  84. The name of the source package that this binary package came from, if
  85. different than the name of the package itself.
  86. .TP
  87. .BR "Depends: " "<package list>"
  88. List of packages that are required for this package to provide a
  89. non-trivial amount of functionality. The package maintenance software
  90. will not allow a package to be installed if the packages listed in its
  91. .B Depends
  92. field aren't installed (at least not without using the force options),
  93. and will run the postinst scripts of packages listed in Depends: fields
  94. before those of the packages which depend on them, and run prerm scripts
  95. before.
  96. .TP
  97. .BR "Pre-Depends: " "<package list>"
  98. List of packages that must be installed
  99. .B and
  100. configured before this one can be installed. This is usually used in the
  101. case where this package requires another package for running its preinst
  102. script.
  103. .TP
  104. .BR "Recommends: " "<package list>"
  105. Lists packages that would be found together with this one in all but
  106. unusual installations. The package maintenance software will warn the
  107. user if they install a package without those listed in its
  108. .B Recommends
  109. field.
  110. .TP
  111. .BR Suggests: \ <package\ list>
  112. Lists packages that are related to this one and can perhaps enhance
  113. its usefulness, but without which installing this package is perfectly
  114. reasonable.
  115. .LP
  116. The syntax of
  117. .B Depends ,
  118. .B Pre-Depends ,
  119. .B Recommends
  120. and
  121. .B Suggests
  122. fields is a list of groups of alternative packages. Each group is a list
  123. of packages separated by vertical bar (or `pipe') symbols, `|'. The
  124. groups are separated by commas. Commas are to be read as `AND', and pipes
  125. as `OR', with pipes binding more tightly. Each item is a package name
  126. optionally followed by a version number specification in parentheses.
  127. .LP
  128. A version number may start with a `>>', in which case any later version
  129. will match, and may specify or omit the Debian packaging revision (separated
  130. by a hyphen). Accepted version relationships are ">>" for greater than,
  131. "<<" for less than, ">=" for greater than or equal to, "<=" for less than
  132. or equal to, and "=" for equal to.
  133. .TP
  134. .BR "Conflicts: " "<package list>"
  135. Lists packages that conflict with this one, for example by containing
  136. files with the same names. The package maintenance software will not
  137. allow conflicting packages to be installed at the same time. Two
  138. conflicting packages should each include a
  139. .B Conflicts
  140. line mentioning the other.
  141. .TP
  142. .BR "Replaces: " "<package list>"
  143. List of packages files from which this one replaces. This is used for
  144. allowing this package to overwrite the files of another package and
  145. is usually used with the
  146. .B Conflicts
  147. field to force removal of the other package, if this one also has the
  148. same files as the conflicted package.
  149. .TP
  150. .BR Provides: \ <package\ list>
  151. This is a list of virtual packages that this one provides. Usually this is
  152. used in the case of several packages all providing the same service.
  153. For example, sendmail and exim can serve as a mail server, so they
  154. provide a common package (`mail-transport-agent') on which other packages
  155. can depend. This will allow sendmail or exim to serve as a valid option
  156. to satisy the dependency. This prevents the packages that depend on a mail
  157. server from having to know the package names for all of them, and using
  158. `|' to separate the list.
  159. .LP
  160. The syntax of
  161. .B Conflicts ,
  162. .B Replaces
  163. and
  164. .B Provides
  165. is a list of package names, separated by commas (and optional whitespace).
  166. In the
  167. .B Conflicts
  168. field, the comma should be read as `OR'. An optional version can also be
  169. given with the same syntax as above for the
  170. .B Conflicts
  171. and
  172. .B Replaces
  173. fields.
  174. .SH EXAMPLE
  175. .\" .RS
  176. .nf
  177. Package: grep
  178. Essential: yes
  179. Priority: required
  180. Section: base
  181. Maintainer: Wichert Akkerman <wakkerma@debian.org>
  182. Architecture: sparc
  183. Version: 2.4-1
  184. Pre-Depends: libc6 (>= 2.0.105)
  185. Provides: rgrep
  186. Conflicts: rgrep
  187. Description: GNU grep, egrep and fgrep.
  188. The GNU family of grep utilities may be the "fastest grep in the west".
  189. GNU grep is based on a fast lazy-state deterministic matcher (about
  190. twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-Gosper
  191. search for a fixed string that eliminates impossible text from being
  192. considered by the full regexp matcher without necessarily having to
  193. look at every character. The result is typically many times faster
  194. than Unix grep or egrep. (Regular expressions containing backreferencing
  195. will run more slowly, however.)
  196. .fi
  197. .\" .RE
  198. .SH SEE ALSO
  199. .BR deb (5),
  200. .BR dpkg (8),
  201. .BR dpkg-deb (1).