dpkg-source.8 6.2 KB

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