deb-control.5 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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: \ <Short\ name\ of\ package>
  27. The value of this field is used to generate file names by some
  28. installation tools.
  29. .TP
  30. .BR Version: \ <Original\ Version\ and\ Debian\ Package\ Revision>
  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: \ <Name\ and\ e-mail\ address\ of\ package\ maintainer>
  38. should be in the format Joe Bloggs <jbloggs@foo.com>.
  39. .TP
  40. .BR Description: \ <Description\ of\ package>
  41. The format for the package description is a short brief summary on the
  42. first line (after the "Description" field). The following lines can be
  43. used as a longer, more detailed description. Each line of the long description
  44. must be preceded by a space, and blank lines in the long desription must
  45. contain a single '.' following the preceding space.
  46. .SH OPTIONAL FIELDS
  47. .TP
  48. .BR Depends: \ <Short\ names\ of\ requisite\ packages>
  49. List of packages that are required for this package to provide a
  50. non-trivial amount of functionality. The package maintenance software
  51. will not allow a package to be installed without also installing
  52. packages listed in its
  53. .B Depends
  54. field, and will run the postinst scripts of packages listed in DEPENDS
  55. fields before those of the packages which depend on them, and run
  56. prerm scripts before.
  57. .TP
  58. .BR Pre-Depends: \ <Short\ names\ of\ prerequisite\ packages>
  59. List of packages that must be installed
  60. .B and
  61. configured before this one can be installed. This is usually used in the
  62. case where this package requires the pre depend for running its preinst
  63. script.
  64. .TP
  65. .BR Recommends: \ <Short\ names\ of\ related,\ recommended\ packages>
  66. Lists packages that would be found together with
  67. this one in all but unusual installations. The package maintenance
  68. software will warn the user if they install a package without those
  69. listed in its
  70. .B Recommends
  71. field.
  72. .TP
  73. .BR Suggests: \ <Short\ names\ of\ related,\ optional\ packages>
  74. lists packages that are related to this one and can perhaps enhance
  75. its usefulness, but without which installing this package is perfectly
  76. reasonable. The package maintenance software will not moan at the
  77. user for not selecting suggested packages, but may use the information
  78. in the
  79. .B Suggests
  80. field to assist the user during package selection.
  81. .LP
  82. The syntax of
  83. .B Depends ,
  84. .B Pre-Depends ,
  85. .B Recommends
  86. and
  87. .B Suggests
  88. is a list of groups of alternative packages. Each group is a list of
  89. packages separated by vertical bar (or `pipe') symbols, `|'. The
  90. groups are separated by commas. Each package is a package name
  91. optionally followed by a version number specification in parentheses.
  92. A version number may start with a `>>', in which case any later version
  93. will match, and may specify or omit the Debian packaging revision
  94. (separated by a hyphen). Commas are to be read as `AND', and pipes as
  95. `OR', with pipes binding more tightly.
  96. .LP
  97. Accepted version relationships are ">>" for greater than, "<<" for less than,
  98. ">=" for greater than or equal to, "<=" for less than or equal to, and "="
  99. for equal to.
  100. .TP
  101. .BR Conflicts: \ <Short\ names\ of\ packages\ which\ conflict\ with\ this\ one>
  102. Lists packages that conflict with this one, for example by containing
  103. files with the same names (an example would be Smail vs. Sendmail).
  104. The package maintenance software will not allow conflicting packages
  105. to be installed at the same time. Two conflicting packages should each include a
  106. .B Conflicts
  107. line mentioning the other.
  108. .TP
  109. .BR Replaces: \ <Short\ names\ of\ packages\ which\ this\ one\ replaces>
  110. List of packages that this one replaces. This is used for allowing this package
  111. to overwrite the files of another package and is usually used with the
  112. .B Conflicts
  113. field to force removal of the other package, if this one also has the same files
  114. as the conflicted package.
  115. .TP
  116. .BR Provides: \ <Short\ names\ of\ packages\ this\ one\ provides>
  117. This is a list of virtual packages that this one provides. Usuaully this is used
  118. in the case of several packages all providing the same service. For example,
  119. sendmail and smail both can serve as a mail server, so they provide a common package
  120. on which other packages can depend. This will allow sendmail or smail to serve
  121. as a valid option to satisy the one dependency. This prevents the packages that
  122. depend on a mail server from having to know the package names for all of them,
  123. and using `|' to seperate the list.
  124. .LP
  125. The syntax of
  126. .B Conflicts ,
  127. .B Replaces
  128. and
  129. .B Provides
  130. is a list of package names, separated by commas (and optional
  131. whitespace). In the
  132. .B Conflicts
  133. field, the comma should be read as `OR'. An optional version can also be given
  134. with the same syntax as above for the
  135. .B Conflicts
  136. and
  137. .B Replaces
  138. fields.
  139. .SH SEE ALSO
  140. .BR deb (5),
  141. .BR dpkg (8),
  142. .BR dpkg-deb (1),
  143. .BR dselect (8).