dpkg-split.8 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. .\" Hey, Emacs! This is an -*- nroff -*- source file.
  2. .\" Authors: Ian Jackson
  3. .TH dpkg-split 1 "23rd June 1996" "Debian GNU/Linux"
  4. .SH NAME
  5. dpkg\-split \- Debian package archive split/join tool
  6. .SH SYNOPSIS
  7. .B dpkg-split
  8. .BR -s | --split
  9. .IR complete\-archive " [" prefix ]
  10. .br
  11. .B dpkg-split
  12. .BR -j | --join
  13. .IR "part part " ...
  14. .br
  15. .B dpkg-split
  16. .BR -I | --info
  17. .IR "part part " ...
  18. .br
  19. .B dpkg-split
  20. .BR -a | --auto
  21. .BI -o " complete\-output part"
  22. .br
  23. .B dpkg-split
  24. .BR -l | --listq
  25. .br
  26. .B dpkg-split
  27. .BR -d | --discard
  28. .RI [ "package package " ...]
  29. .SH DESCRIPTION
  30. .B dpkg-split
  31. splits Debian binary package files into smaller parts and reassembles
  32. them again, to support the storage of large package files on small
  33. media such as floppy disks.
  34. It can be operated manually using the
  35. .BR --split ", " --join " and " --info
  36. options.
  37. It also has an automatic mode, invoked using the
  38. .B --auto
  39. option, where it maintains a queue of parts seen but not yet
  40. reassembled and reassembles a package file when it has seen all of its
  41. parts. The
  42. .BR --listq " and " --discard
  43. options allow the management of the queue.
  44. All splitting, joining and queueing operations produce informative
  45. messages on standard output; these may safely be ignored.
  46. .SH ACTION OPTIONS
  47. .TP
  48. .BR --split ", " -s
  49. Splits a single Debian binary package into several parts.
  50. The parts are named
  51. .IB prefix . N of M .deb
  52. where
  53. .I N
  54. is the part number, starting at 1, and
  55. .I M
  56. is the total number of parts (both in decimal).
  57. If no
  58. .I prefix
  59. is supplied then the
  60. .I complete\-archive
  61. filename is taken, including directory, with any trailing
  62. .B .deb
  63. removed.
  64. .TP
  65. .BR --join ", " -j
  66. Joins the parts of a package file together, reassembling the original
  67. file as it was before it was split.
  68. The part files given as arguments must be all the parts of exactly the
  69. same original binary file. Each part must occur exactly once in the
  70. argument list, though the parts to not need to be listed in order.
  71. The parts must of course all have been generated with the same part
  72. size specified at split time, which means that they must usually have
  73. been generated by the same invocation of
  74. .BR "dpkg-split --split" .
  75. The parts' filenames are not significant for the reassembly process.
  76. By default the output file is called
  77. .IB package - version .deb\fR.
  78. .TP
  79. .BR --info ", " -I
  80. Prints information, in a human-readable format, about the part file(s)
  81. specified. Arguments which are not binary package parts produce a
  82. message saying so instead (but still on standard output).
  83. .TP
  84. .BR --auto ", " -a
  85. Automatically queue parts and reassemble a package if possible.
  86. The
  87. .I part
  88. specified is examined, and compared with other parts of the same
  89. package (if any) in the queue of packages file parts.
  90. If all parts of the package file of which
  91. .I part
  92. is a part are available then the package is reassembled and written to
  93. .I complete\-output
  94. (which should not usually already exist, though this is not an
  95. error).
  96. If not then the
  97. .I part
  98. is copied into the queue and
  99. .I complete\-output
  100. is not created.
  101. If
  102. .I part
  103. is not a split binary package part then
  104. .B dpkg\-split
  105. will exit with status 1; if some other trouble occurs then it will
  106. exit with status 2.
  107. The
  108. .BR --output " or " -o
  109. option must be supplied when using
  110. .BR --auto .
  111. (If this were not mandatory the calling program would not know what
  112. output file to expect.)
  113. .TP
  114. .BR --listq ", " -l
  115. Lists the contents of the queue of packages to be reassembled.
  116. For each package file of which parts are in the queue the output gives
  117. the name of the package, the parts in the queue, and the total number
  118. of bytes stored in the queue.
  119. .TP
  120. .BR --discard ", " -d
  121. This discards parts from the queue of those waiting for the remaining
  122. parts of their packages.
  123. If no
  124. .I package
  125. is specified then the queue is cleared completely; if any are
  126. specified then only parts of the relevant package(s) are deleted.
  127. .TP
  128. .BR --help ", " -h
  129. Prints
  130. .BR dpkg\-split 's
  131. usage message, giving a summary of its options and their uses.
  132. .TP
  133. .BR --version
  134. Prints
  135. .BR dpkg\-split 's
  136. version number.
  137. .TP
  138. .BR --licence
  139. Prints information about
  140. .BR dpkg\-split 's
  141. copyright licensing and lack of warranty. (The American spelling
  142. .B \-\-license
  143. is also supported.)
  144. .SH OTHER OPTIONS
  145. .TP
  146. .BI --depotdir " directory"
  147. Specifies an alternative directory for the queue of parts awaiting
  148. automatic reassembly. The default is
  149. .BR /var/lib/dpkg .
  150. .TP
  151. .BI --partsize\fR|\fB-S " kbytes"
  152. Specifies the maximum part size when splitting, in kilobytes (1024
  153. bytes). The default is 450Kb.
  154. .TP
  155. .BI --output\fR|\fB-O " complete\-output"
  156. Specifies the output file name for a reassembly.
  157. This overrides the default for a manual reassembly
  158. .RB ( \-\-join )
  159. and is mandatory for an automatic queue-or-reassemble
  160. .RB ( \-\-auto ).
  161. .TP
  162. .BR --npquiet ", " -Q
  163. When doing automatic queue-or-reassembly
  164. .B dpkg\-split
  165. usually prints a message if it is given a
  166. .I part
  167. that is not a binary package part. This option suppresses this
  168. message, to allow programs such as
  169. .B dpkg
  170. to cope with both split and unsplit packages without producing
  171. spurious messages.
  172. .TP
  173. .BR --msdos
  174. Forces the output filenames generated by
  175. .B \-\-split
  176. to be msdos-compatible.
  177. This mangles the prefix - either the default derived from the input
  178. filename or the one supplied as an argument: alphanumerics are
  179. lowercased, plus signs are replaced by
  180. .BR x 's
  181. and all other characters are discarded.
  182. The result is then truncated as much as is necessary, and filenames of
  183. the form
  184. .IB "prefixN" of M .deb
  185. are generated.
  186. .SH EXIT STATUS
  187. An exit status of 0 indicates that the requested split, merge, or
  188. other command succeeded.
  189. .B \-\-info
  190. commands count as successful even if the files are not binary package
  191. parts.
  192. An exit status of 1 occurs only with
  193. .B \-\-auto
  194. and indicates that the
  195. .I part
  196. file was not a binary package part.
  197. An exit status of 2 indicates some kind of trouble, such as a system
  198. call failure, a file that looked like a package part file but was
  199. corrupted, a usage error or some other problem.
  200. .SH BUGS
  201. .B dpkg\-split
  202. uses some rather out-of-date conventions for the the filenames of
  203. Debian packages.
  204. Full details of the packages in the queue are impossible to get
  205. without digging into the queue directory yourself.
  206. There is no easy way to test whether a file that may be a binary
  207. package part is one.
  208. The architecture is not represented in the part files' header, only in
  209. the control information of the contained binary package file, and it
  210. is not present in the filenames generated.
  211. .SH FILES
  212. .TP
  213. .B /var/lib/dpkg/parts
  214. The default queue directory for part files awaiting automatic
  215. reassembly.
  216. The filenames used in this directory are in a format internal to
  217. .B dpkg\-split
  218. and are unlikely to be useful to other programs, and in any case the
  219. filename format should not be relied upon.
  220. .SH SEE ALSO
  221. .BR deb (5),
  222. .BR deb\-control (5),
  223. .BR dpkg\-deb (1),
  224. .BR dpkg (8)
  225. .SH AUTHOR
  226. .B dpkg\-split
  227. and this manpage were written by Ian Jackson. They are
  228. Copyright (C) 1995-1996
  229. by him and released under the GNU General Public Licence; there is NO
  230. WARRANTY. See
  231. .B /usr/share/dpkg/copyright
  232. and
  233. .B /usr/share/common-licenses/GPL
  234. for details.