dpkg-split.1 6.6 KB

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