dpkg-split.8 7.1 KB

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