deb-control.5 7.6 KB

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