deb-changes.man 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. .\" dpkg manual page - deb-changes(5)
  2. .\"
  3. .\" Copyright © 1995-1996 Ian Jackson <ijackson@chiark.greenend.org.uk>
  4. .\" Copyright © 2010 Russ Allbery <rra@debian.org>
  5. .\" Copyright © 2015 Guillem Jover <guillem@debian.org>
  6. .\"
  7. .\" This is free software; you can redistribute it and/or modify
  8. .\" it under the terms of the GNU General Public License as published by
  9. .\" the Free Software Foundation; either version 2 of the License, or
  10. .\" (at your option) any later version.
  11. .\"
  12. .\" This is distributed in the hope that it will be useful,
  13. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. .\" GNU General Public License for more details.
  16. .\"
  17. .\" You should have received a copy of the GNU General Public License
  18. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. .
  20. .TH deb\-changes 5 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
  21. .nh
  22. .SH NAME
  23. deb\-changes \- Debian changes file format
  24. .
  25. .SH SYNOPSIS
  26. .IB filename .changes
  27. .
  28. .SH DESCRIPTION
  29. Each Debian upload is composed of a .changes control file, which
  30. contains a number of fields.
  31. Each field begins with a tag, such as
  32. .B Source
  33. or
  34. .B Binary
  35. (case insensitive), followed by a colon, and the body of the field.
  36. Fields are delimited only by field tags.
  37. In other words, field text may be multiple lines in length, but the
  38. installation tools will generally join lines when processing the body
  39. of the field (except in case of the multiline fields
  40. .BR Description ", " Changes ", " Files ", " Checksums\-Sha1
  41. and
  42. .BR Checksums\-Sha256 ,
  43. see below).
  44. .PP
  45. The control data might be enclosed in an OpenPGP ASCII Armored signature,
  46. as specified in RFC4880.
  47. .
  48. .SH FIELDS
  49. .TP
  50. .BR Format: " \fIformat-version\fP (required)"
  51. The value of this field declares the format version of the file.
  52. The syntax of the field value is a version number with a major and minor
  53. component.
  54. Backward incompatible changes to the format will bump the major version,
  55. and backward compatible changes (such as field additions) will bump the
  56. minor version.
  57. The current format version is \fB1.8\fP.
  58. .TP
  59. .BR Date: " \fIrelease-date\fP (required)"
  60. The date the package was built or last edited.
  61. It must be in the same format as the date in a \fBdeb\-changelog\fP(5)
  62. entry.
  63. The value of this field is usually extracted from the \fIdebian/changelog\fP
  64. file.
  65. .TP
  66. .BR Source: " \fIsource-name\fP [\fB(\fP\fIsource-version\fP\fB)\fP] (required)"
  67. The name of the source package.
  68. If the source version differs from the binary version, then the
  69. \fIsource-name\fP will be followed by a \fIsource-version\fP in parenthesis.
  70. This can happen when the upload is a binary-only non-maintainer upload.
  71. .TP
  72. .BR Binary: " \fIbinary-package-list\fP (required)"
  73. This folded field is a space-separated list of binary packages to upload.
  74. .TP
  75. .BR Architecture: " \fIarch-list\fP"
  76. Lists the architectures of the files currently being uploaded.
  77. Common architectures are \fBamd64\fP, \fBarmel\fP, \fBi386\fP, etc.
  78. Note that the \fBall\fP value is meant for packages that are architecture
  79. independent.
  80. If the source for the package is also being uploaded, the special entry
  81. \fBsource\fP is also present.
  82. Architecture wildcards must never be present in the list.
  83. .TP
  84. .BR Version: " \fIversion-string\fP (required)"
  85. Typically, this is the original package's version number in whatever form
  86. the program's author uses.
  87. It may also include a Debian revision number (for non-native packages).
  88. The exact format and sorting algorithm are described in
  89. .BR deb\-version (5).
  90. .TP
  91. .BR Distribution: " \fIdistribution\fPs (required)"
  92. Lists one or more space-separated distributions where this version should
  93. be installed when it is uploaded to the archive.
  94. .TP
  95. .BR Urgency: " \fIurgency\fP (recommended)"
  96. The urgency of the upload.
  97. The currently known values, in increasing order of urgency, are:
  98. .BR low ", " medium ", " high ", " critical " and " emergency .
  99. .TP
  100. .BR Maintainer: " \fIfullname-email\fP (required)"
  101. Should be in the format “Joe Bloggs <jbloggs@example.org>”, and is
  102. typically the person who created the package, as opposed to the author of
  103. the software that was packaged.
  104. .TP
  105. .BI Changed\-By: " fullname-email"
  106. Should be in the format “Joe Bloggs <jbloggs@example.org>”, and is
  107. typically the person who prepared the package changes for this release.
  108. .TP
  109. .BR Description: " (recommended)"
  110. .TQ
  111. .RB " \fIbinary-package-name\fP " \fB\-\fP " \fIbinary-package-summary\fP"
  112. This multiline field contains a list of binary package names followed by
  113. a space, a dash (‘\fB\-\fP’) and their possibly truncated short
  114. descriptions.
  115. .TP
  116. .BI Closes: " bug-number-list"
  117. A space-separated list of bug report numbers that have been resolved with
  118. this upload.
  119. The distribution archive software might use this field to automatically
  120. close the referred bug numbers in the distribution bug tracking system.
  121. .TP
  122. .B Binary\-Only: yes
  123. This field denotes that the upload is a binary-only non-maintainer build.
  124. It originates from the \fBbinary\-only=yes\fP key/value from the changelog
  125. matadata entry.
  126. .TP
  127. .BI Built\-For\-Profiles: " profile-list"
  128. This field specifies a whitespace separated list of build profiles that
  129. this upload was built with.
  130. .TP
  131. .BR Changes: " (required)"
  132. .TQ
  133. .I " changelog-entries"
  134. This multiline field contains the concatenated text of all changelog
  135. entries that are part of the upload.
  136. To make this a valid multiline field empty lines are replaced with a
  137. single full stop (‘.’) and all lines are indented by one space
  138. character.
  139. The exact content depends on the changelog format.
  140. .TP
  141. .BR Files: " (required)"
  142. .TQ
  143. .RI " " md5sum " " size " " section " " priority " " filename
  144. This multiline field contains a list of files with an md5sum, size, section
  145. and priority for each one.
  146. The first line of the field value (the part on the same line as the field
  147. name followed by a colon) is always empty.
  148. The content of the field is expressed as continuation lines, one line per file.
  149. Each line consists of space-separated entries describing the file:
  150. the md5sum, the file size, the file section, the file priority, and
  151. the file name.
  152. This field lists all files that make up the upload.
  153. The list of files in this field must match the list of files in the
  154. other related \fBChecksums\fP fields.
  155. .TP
  156. .BR Checksums\-Sha1: " (required)"
  157. .TQ
  158. .BR Checksums\-Sha256: " (required)"
  159. .TQ
  160. .RI " " checksum " " size " " filename
  161. These multiline fields contain a list of files with a checksum and size
  162. for each one.
  163. These fields have the same syntax and differ only in the checksum algorithm
  164. used: SHA-1 for \fBChecksums\-Sha1\fP and SHA-256 for \fBChecksums\-Sha256\fP.
  165. The first line of the field value (the part on the same line as the field
  166. name followed by a colon) is always empty.
  167. The content of the field is expressed as continuation lines, one line per file.
  168. Each line consists of space-separated entries describing the file:
  169. the checksum, the file size, and the file name.
  170. These fields list all files that make up the upload.
  171. The list of files in these fields must match the list of files in the
  172. \fBFiles\fP field and the other related \fBChecksums\fP fields.
  173. .
  174. .\" .SH EXAMPLE
  175. .\" .RS
  176. .\" .nf
  177. .\"
  178. .\" .fi
  179. .\" .RE
  180. .
  181. .SH BUGS
  182. The \fBFiles\fP field is inconsistent with the other \fBChecksums\fP fields.
  183. The \fBChange\-By\fP and \fBMaintainer\fP fields have confusing names.
  184. The \fBDistribution\fP field contains information about what is commonly
  185. referred to as a suite.
  186. .SH SEE ALSO
  187. .BR deb\-src\-control (5),
  188. .BR deb\-version (5).