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 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
  78. \&.
  79. .TP
  80. .BR --info ", " -I
  81. Prints information, in a human-readable format, about the part file(s)
  82. specified. Arguments which are not binary package parts produce a
  83. message saying so instead (but still on standard output).
  84. .TP
  85. .BR --auto ", " -a
  86. Automatically queue parts and reassemble a package if possible.
  87. The
  88. .I part
  89. specified is examined, and compared with other parts of the same
  90. package (if any) in the queue of packages file parts.
  91. If all parts of the package file of which
  92. .I part
  93. is a part are available then the package is reassembled and written to
  94. .I complete\-output
  95. (which should not usually already exist, though this is not an
  96. error).
  97. If not then the
  98. .I part
  99. is copied into the queue and
  100. .I complete\-output
  101. is not created.
  102. If
  103. .I part
  104. is not a split binary package part then
  105. .B dpkg\-split
  106. will exit with status 1; if some other trouble occurs then it will
  107. exit with status 2.
  108. The
  109. .BR --output " or " -o
  110. option must be supplied when using
  111. .BR --auto .
  112. (If this were not mandatory the calling program would not know what
  113. output file to expect.)
  114. .TP
  115. .BR --listq ", " -l
  116. Lists the contents of the queue of packages to be reassembled.
  117. For each package file of which parts are in the queue the output gives
  118. the name of the package, the parts in the queue, and the total number
  119. of bytes stored in the queue.
  120. .TP
  121. .BR --discard ", " -d
  122. This discards parts from the queue of those waiting for the remaining
  123. parts of their packages.
  124. If no
  125. .I package
  126. is specified then the queue is cleared completely; if any are
  127. specified then only parts of the relevant package(s) are deleted.
  128. .TP
  129. .BR --help ", " -h
  130. Prints
  131. .BR dpkg\-split 's
  132. usage message, giving a summary of its options and their uses.
  133. .TP
  134. .BR --version
  135. Prints
  136. .BR dpkg\-split 's
  137. version number.
  138. .TP
  139. .BR --licence
  140. Prints information about
  141. .BR dpkg\-split 's
  142. copyright licensing and lack of warranty. (The American spelling
  143. .B \-\-license
  144. is also supported.)
  145. .SH OTHER OPTIONS
  146. .TP
  147. .BI --depotdir " directory"
  148. Specifies an alternative directory for the queue of parts awaiting
  149. automatic reassembly. The default is
  150. .BR /var/lib/dpkg .
  151. .TP
  152. .BI --partsize\fR|\fB-S " kbytes"
  153. Specifies the maximum part size when splitting, in kilobytes (1024
  154. bytes). The default is 450Kb.
  155. .TP
  156. .BI --output\fR|\fB-O " complete\-output"
  157. Specifies the output file name for a reassembly.
  158. This overrides the default for a manual reassembly
  159. .RB ( \-\-join )
  160. and is mandatory for an automatic queue-or-reassemble
  161. .RB ( \-\-auto ).
  162. .TP
  163. .BR --npquiet ", " -Q
  164. When doing automatic queue-or-reassembly
  165. .B dpkg\-split
  166. usually prints a message if it is given a
  167. .I part
  168. that is not a binary package part. This option suppresses this
  169. message, to allow programs such as
  170. .B dpkg
  171. to cope with both split and unsplit packages without producing
  172. spurious messages.
  173. .TP
  174. .BR --msdos
  175. Forces the output filenames generated by
  176. .B \-\-split
  177. to be msdos-compatible.
  178. This mangles the prefix - either the default derived from the input
  179. filename or the one supplied as an argument: alphanumerics are
  180. lowercased, plus signs are replaced by
  181. .BR x 's
  182. and all other characters are discarded.
  183. The result is then truncated as much as is necessary, and filenames of
  184. the form
  185. .IB "prefixN" of M .deb
  186. are generated.
  187. .SH EXIT STATUS
  188. An exit status of 0 indicates that the requested split, merge, or
  189. other command succeeded.
  190. .B \-\-info
  191. commands count as successful even if the files are not binary package
  192. parts.
  193. An exit status of 1 occurs only with
  194. .B \-\-auto
  195. and indicates that the
  196. .I part
  197. file was not a binary package part.
  198. An exit status of 2 indicates some kind of trouble, such as a system
  199. call failure, a file that looked like a package part file but was
  200. corrupted, a usage error or some other problem.
  201. .SH BUGS
  202. .B dpkg\-split
  203. uses some rather out-of-date conventions for the the filenames of
  204. Debian packages.
  205. Full details of the packages in the queue are impossible to get
  206. without digging into the queue directory yourself.
  207. There is no easy way to test whether a file that may be a binary
  208. package part is one.
  209. The architecture is not represented in the part files' header, only in
  210. the control information of the contained binary package file, and it
  211. is not present in the filenames generated.
  212. .SH FILES
  213. .TP
  214. .B /var/lib/dpkg/parts
  215. The default queue directory for part files awaiting automatic
  216. reassembly.
  217. The filenames used in this directory are in a format internal to
  218. .B dpkg\-split
  219. and are unlikely to be useful to other programs, and in any case the
  220. filename format should not be relied upon.
  221. .SH SEE ALSO
  222. .BR dpkg\-split (5),
  223. .BR dpkg\-deb (5),
  224. .BR dpkg\-deb (8),
  225. .BR dpkg (8)
  226. .SH AUTHOR
  227. .B dpkg\-split
  228. and this manpage were written by Ian Jackson. They are
  229. Copyright (C) 1995-1996
  230. by him and released under the GNU General Public Licence; there is NO
  231. WARRANTY. See
  232. .B /usr/doc/copyright/dpkg
  233. and
  234. .B /usr/doc/copyright/GPL
  235. for details.