deb-control.5 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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 "29th November 1995" "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. Master control file format:
  11. .LP
  12. The `control' file contains a number of fields. Each field begins
  13. with a tag, such as
  14. .B Package
  15. or
  16. .B Version
  17. (case insensitive),
  18. followed by a colon, and the body of the field. Fields are delimited
  19. only by field tags. In other words, field text may be multiple lines
  20. in length, but the installation tools will generally join lines when
  21. processing the body of the field (except in the case of the
  22. .B Description
  23. field, see below).
  24. .SH REQUIRED FIELDS
  25. .TP
  26. .BR Package: \ <package\ name>
  27. The value of this field is used to generate file names by some
  28. installation tools.
  29. .TP
  30. .BR Version: \ <version\ string>
  31. Typically, this is the original portable package's version
  32. number in whatever form the program's author uses. It may also include
  33. a Debian revision number (for non-native packages). If both version and
  34. revision are supplied, they are seperated by a '-'. For this reason,
  35. the original version cannot have a '-' in its version number.
  36. .TP
  37. .BR Maintainer: \ <fullname\ email>
  38. Should be in the format `Joe Bloggs <jbloggs@foo.com>', and is typically
  39. the person who created the package as opposed to the author of the
  40. software that was packages.
  41. .TP
  42. .BR Description: \ <package\ description>
  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 software
  52. that it installs. Some common sections are `mail', `text' and `new'.
  53. .TP
  54. .BR Priority: \ <priority>
  55. Sets the importance of this package in relation to the system as a whole. Common
  56. priorities are `base', `standard' and `optional'.
  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 policy. They are used to
  63. decide how the packages are layed out in the archive. A list of these can be
  64. obtained from the latest
  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 a
  70. package that is required for proper operation of the system. Dpkg will not
  71. allow this an
  72. .B Essential
  73. package to be removed 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', `sparc' and `alpha'. Note that the
  78. .B all
  79. option is meant for packages that are architecture independent. Some examples
  80. of this are perl scripts and documentation.
  81. .TP
  82. .BR Source: \ <source\ name>
  83. The name of the source that this package came from, if different than the
  84. name of the package itself.
  85. .TP
  86. .BR Depends: \ <package\ list>
  87. List of packages that are required for this package to provide a
  88. non-trivial amount of functionality. The package maintenance software
  89. will not allow a package to be installed without also installing
  90. packages listed in its
  91. .B Depends
  92. field, and will run the postinst scripts of packages listed in DEPENDS
  93. fields before those of the packages which depend on them, and run
  94. prerm scripts before.
  95. .TP
  96. .BR Pre-Depends: \ <package\ list>
  97. List of packages that must be installed
  98. .B and
  99. configured before this one can be installed. This is usually used in the
  100. case where this package requires the pre depend for running its preinst
  101. script.
  102. .TP
  103. .BR Recommends: \ <package\ list>
  104. Lists packages that would be found together with
  105. this one in all but unusual installations. The package maintenance
  106. software will warn the user if they install a package without those
  107. 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. The package maintenance software will not moan at the
  115. user for not selecting suggested packages, but may use the information
  116. in the
  117. .B Suggests
  118. field to assist the user during package selection.
  119. .LP
  120. The syntax of
  121. .B Depends ,
  122. .B Pre-Depends ,
  123. .B Recommends
  124. and
  125. .B Suggests
  126. is a list of groups of alternative packages. Each group is a list of
  127. packages separated by vertical bar (or `pipe') symbols, `|'. The
  128. groups are separated by commas. Each package is a package name
  129. optionally followed by a version number specification in parentheses.
  130. A version number may start with a `>>', in which case any later version
  131. will match, and may specify or omit the Debian packaging revision
  132. (separated by a hyphen). Commas are to be read as `AND', and pipes as
  133. `OR', with pipes binding more tightly.
  134. .LP
  135. Accepted version relationships are ">>" for greater than, "<<" for less than,
  136. ">=" for greater than or equal to, "<=" for less than or equal to, and "="
  137. for equal to.
  138. .TP
  139. .BR Conflicts: \ <package\ list>
  140. Lists packages that conflict with this one, for example by containing
  141. files with the same names (an example would be Smail vs. Sendmail).
  142. The package maintenance software will not allow conflicting packages
  143. to be installed at the same time. Two conflicting packages should each include a
  144. .B Conflicts
  145. line mentioning the other.
  146. .TP
  147. .BR Replaces: \ <package\ list>
  148. List of packages that this one replaces. This is used for allowing this package
  149. to overwrite the files of another package and is usually used with the
  150. .B Conflicts
  151. field to force removal of the other package, if this one also has the same files
  152. as the conflicted package.
  153. .TP
  154. .BR Provides: \ <package\ list>
  155. This is a list of virtual packages that this one provides. Usuaully this is used
  156. in the case of several packages all providing the same service. For example,
  157. sendmail and smail both can serve as a mail server, so they provide a common package
  158. on which other packages can depend. This will allow sendmail or smail to serve
  159. as a valid option to satisy the one dependency. This prevents the packages that
  160. depend on a mail server from having to know the package names for all of them,
  161. and using `|' to seperate the list.
  162. .LP
  163. The syntax of
  164. .B Conflicts ,
  165. .B Replaces
  166. and
  167. .B Provides
  168. is a list of package names, separated by commas (and optional
  169. whitespace). In the
  170. .B Conflicts
  171. field, the comma should be read as `OR'. An optional version can also be given
  172. with the same syntax as above for the
  173. .B Conflicts
  174. and
  175. .B Replaces
  176. fields.
  177. .SH EXAMPLE
  178. .PP
  179. .RS
  180. .nf
  181. Package: grep
  182. Essential: yes
  183. Priority: required
  184. Section: base
  185. Maintainer: Wichert Akkerman <wakkerma@debian.org>
  186. Architecture: sparc
  187. Version: 2.3-7
  188. Pre-Depends: libc6 (>= 2.0.105)
  189. Description: GNU grep, egrep and fgrep.
  190. The GNU set of grep tools. Many times faster than standard
  191. unix grep.
  192. .fi
  193. .RE
  194. .PP
  195. .SH SEE ALSO
  196. .BR deb (5),
  197. .BR dpkg (8),
  198. .BR dpkg-deb (1),
  199. .BR dselect (8).