dpkg-deb.1 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. .TH dpkg\-deb 1 "2006-06-17" "Debian Project" "dpkg suite"
  2. .SH NAME
  3. dpkg\-deb - Debian package archive (.deb) manipulation tool
  4. .SH SYNOPSIS
  5. .B dpkg\-deb
  6. .BR \-b | \-\-build
  7. .IR directory " [" archive | directory ]
  8. .br
  9. .B dpkg\-deb
  10. .BR \-I | \-\-info
  11. .IR archive " [" control-file-name " ..]"
  12. .br
  13. .B dpkg\-deb
  14. .BR \-f | \-\-field
  15. .IR archive " [" control-field-name " ...]"
  16. .br
  17. .B dpkg\-deb
  18. .BR \-c | \-\-contents
  19. .I archive
  20. .br
  21. .B dpkg\-deb
  22. .BR \-W | \-\-show
  23. .RB " [" \-\-showformat\fR=\fIformat "]"
  24. .I archive
  25. .br
  26. .B dpkg\-deb
  27. .BR \-x | \-\-extract | \-X | \-\-vextract
  28. .I archive directory
  29. .br
  30. .B dpkg\-deb
  31. .BR \-e | \-\-control
  32. .I archive directory
  33. .br
  34. .B dpkg\-deb \-\-fsys\-tarfile
  35. .I archive
  36. .SH DESCRIPTION
  37. .B dpkg\-deb
  38. packs, unpacks and provides information about Debian archives.
  39. Use
  40. .B dpkg
  41. to install and remove packages from your system.
  42. You can also invoke
  43. .B dpkg\-deb
  44. by calling
  45. .B dpkg
  46. with whatever options you want to pass to
  47. .BR dpkg\-deb ". " dpkg
  48. will spot that you wanted
  49. .B dpkg\-deb
  50. and run it for you.
  51. .SH ACTION OPTIONS
  52. .TP
  53. .BR \-\-build ", " \-b
  54. Creates a debian archive from the filesystem tree stored in
  55. .IR directory ". " directory
  56. must have a
  57. .B DEBIAN
  58. subdirectory, which contains the control information files such
  59. as the control file itself. This directory will
  60. .I not
  61. appear in the binary package's filesystem archive, but instead
  62. the files in it will be put in the binary package's control
  63. information area.
  64. You can specify the compression level used by adding a
  65. .B \-z#
  66. option.
  67. .B dpkg\-deb
  68. will pass that option on to gzip.
  69. Unless you specify
  70. .BR \-\-nocheck ", " dpkg\-deb "
  71. will read
  72. .B DEBIAN/control
  73. and parse it. It will check it for syntax errors and other problems,
  74. and display the name of the binary package being built.
  75. .B dpkg\-deb
  76. will also check the permissions of the maintainer scripts and other
  77. files found in the
  78. .B DEBIAN
  79. control information directory.
  80. If no
  81. .I archive
  82. is specified then
  83. .B dpkg\-deb
  84. will write the package into the file
  85. .IR directory \fB.deb\fR.
  86. If the archive to be created already exists it will be overwritten.
  87. If the second argument is a directory then
  88. .B dpkg\-deb
  89. will write to the file
  90. .IB package _ version _ arch .deb\fR,
  91. or
  92. .IB package _ version .deb
  93. if no
  94. .B Architecture
  95. field is present in the package control file. When a target directory
  96. is specified, rather than a file, the
  97. .B \-\-nocheck
  98. option may not be used (since
  99. .B dpkg\-deb
  100. needs to read and parse the package control file to determine which
  101. filename to use).
  102. .TP
  103. .BR \-\-info ", " \-I
  104. Provides information about a binary package archive.
  105. If no
  106. .IR control-file-name s
  107. are specified then it will print a summary of the contents of the
  108. package as well as its control file.
  109. If any
  110. .IR control-file-name s
  111. are specified then
  112. .B dpkg\-deb
  113. will print them in the order they were specified; if any of the
  114. components weren't present it will print an error message to stderr
  115. about each one and exit with status 2.
  116. .TP
  117. .BR \-\-show ", " \-W
  118. Provides information about a binary package archive in the format
  119. specified by the
  120. .B \-\-showformat
  121. argument. The default format displays the package's name and version
  122. on one line, seperated by a tabulator.
  123. .TP
  124. .BR \-\-field ", " \-f
  125. Extracts control file information from a binary package archive.
  126. If no
  127. .BR control\-file\-field s
  128. are specified then it will print the whole control file.
  129. If any are specified then
  130. .B dpkg\-deb
  131. will print their contents, in the order in which they appear in the
  132. control file. If more than one
  133. .BR control\-file\-field
  134. is specified then
  135. .B dpkg\-deb
  136. will precede each with its field name (and a colon and space).
  137. No errors are reported for fields requested but not found.
  138. .TP
  139. .BR \-\-contents ", " \-c
  140. Lists the contents of the filesystem tree archive portion of the
  141. package archive. It is currently produced in the format generated by
  142. .BR tar 's
  143. verbose listing.
  144. .TP
  145. .BR \-\-extract ", " \-x ", " \-\-vextract ", " \-X
  146. Extracts the filesystem tree from a package archive into the specified
  147. directory.
  148. .BR \-\-vextract " (" \-X ")"
  149. prints a listing of the files extracted as it goes, while
  150. .BR \-\-extract " (" \-x ")"
  151. is silent unless an error occurs.
  152. Note that extracting a package to the root directory will
  153. .I not
  154. result in a correct installation! Use
  155. .B dpkg
  156. to install packages.
  157. .I directory
  158. (but not its parents) will be created if necessary.
  159. .TP
  160. .BR \-\-fsys\-tarfile
  161. Extracts the filesystem tree data from a binary package and sends it
  162. to standard output in
  163. .B tar
  164. format. Together with
  165. .BR tar (1)
  166. this can be used to extract a particular file from a package archive.
  167. .TP
  168. .BR \-\-control ", " \-e
  169. Extracts the control information files from a package archive into the
  170. specified directory.
  171. If no directory is specified then a subdirectory
  172. .B DEBIAN
  173. in the current directory is used.
  174. The target directory (but not its parents) will be created if
  175. necessary.
  176. .TP
  177. .BR \-\-help ", " \-h
  178. Prints
  179. .BR dpkg\-deb 's
  180. usage message, giving a summary of its options and their uses.
  181. .TP
  182. .BR \-\-version
  183. Prints
  184. .BR dpkg\-deb 's
  185. version number.
  186. .TP
  187. .BR \-\-licence
  188. Prints information about
  189. .BR dpkg\-deb 's
  190. copyright licensing and lack of warranty. (The American spelling
  191. .B \-\-license
  192. is also supported).
  193. .SH OTHER OPTIONS
  194. .TP
  195. \fB\-\-showformat=\fP\fIformat\fR
  196. This option is used to specify the format of the output \fB\-\-show\fP
  197. will produce. The format is a string that will be output for each package
  198. listed.
  199. The string may reference any status field using the
  200. "${\fIfield-name\fR}" form, a list of the valid fields can be easily
  201. produced using
  202. .B \-I
  203. on the same package. A complete explanation of the formatting options
  204. (including escape sequences and field tabbing) can be found in the
  205. explanation of the \fB\-\-showformat\fP option in
  206. .BR dpkg-query (1).
  207. The default for this field is "${Package}\\t${Version}\\n".
  208. .TP
  209. .BR \-\-new
  210. Ensures that
  211. .B dpkg\-deb
  212. builds a `new' format archive. This is the default.
  213. .TP
  214. .BR \-\-old
  215. Forces
  216. .B dpkg\-deb
  217. to build an `old' format archive. This old archive format is less
  218. easily parsed by non-Debian tools and is now obsolete; its only use is
  219. when building packages to be parsed by versions of dpkg older than
  220. 0.93.76 (September 1995), which was released as i386 a.out only.
  221. .TP
  222. .BR \-\-nocheck
  223. Inhibits
  224. .BR "dpkg\-deb \-\-build" 's
  225. usual checks on the proposed contents of an archive. You can build
  226. any archive you want, no matter how broken, this way.
  227. .TP
  228. .BR \-\-debug ", " \-D
  229. Enables debugging output. This is not very interesting.
  230. .SH BUGS
  231. .B dpkg\-deb \-I
  232. .IB package1 .deb
  233. .IB package2 .deb
  234. does the wrong thing.
  235. There is no authentication on
  236. .B .deb
  237. files; in fact, there isn't even a straightforward checksum.
  238. Do not attempt to use just
  239. .B dpkg\-deb
  240. to install software! You must use
  241. .B dpkg
  242. proper to ensure that all the files are correctly placed and the
  243. package's scripts run and its status and contents recorded.
  244. .SH SEE ALSO
  245. .BR deb (5),
  246. .BR deb\-control (5),
  247. .BR dpkg (1),
  248. .BR dselect (1).
  249. .SH AUTHOR
  250. .B dpkg\-deb
  251. and this manpage were written by Ian Jackson.
  252. They are Copyright (C) 1995-1996 by him and released under the
  253. GNU General Public Licence version 2 or later; there is NO WARRANTY. See
  254. .I /usr/share/doc/dpkg/copyright
  255. and
  256. .I /usr/share/common\-licenses/GPL
  257. for details.