dpkg-split.1 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. .\" Authors: Ian Jackson
  2. .TH dpkg\-split 1 "2011-04-15" "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 _ arch .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. .
  117. .SH OPTIONS
  118. .TP
  119. .BI \-\-depotdir " directory"
  120. Specifies an alternative directory for the queue of parts awaiting
  121. automatic reassembly. The default is
  122. .BR /var/lib/dpkg .
  123. .TP
  124. .BR \-S ", " \-\-partsize " \fIkibibytes\fP"
  125. Specifies the maximum part size when splitting, in kibibytes (1024
  126. bytes). The default is 450 KiB.
  127. .TP
  128. .BR \-o ", " \-\-output " \fIcomplete-output\fP"
  129. Specifies the output file name for a reassembly.
  130. This overrides the default for a manual reassembly
  131. .RB ( \-\-join )
  132. and is mandatory for an automatic queue-or-reassemble
  133. .RB ( \-\-auto ).
  134. .TP
  135. .BR \-Q ", " \-\-npquiet
  136. When doing automatic queue-or-reassembly
  137. .B dpkg\-split
  138. usually prints a message if it is given a
  139. .I part
  140. that is not a binary package part. This option suppresses this
  141. message, to allow programs such as
  142. .B dpkg
  143. to cope with both split and unsplit packages without producing
  144. spurious messages.
  145. .TP
  146. .BR \-\-msdos
  147. Forces the output filenames generated by
  148. .B \-\-split
  149. to be msdos-compatible.
  150. This mangles the prefix - either the default derived from the input
  151. filename or the one supplied as an argument: alphanumerics are
  152. lowercased, plus signs are replaced by
  153. .BR x 's
  154. and all other characters are discarded.
  155. The result is then truncated as much as is necessary, and filenames of
  156. the form
  157. .IB "prefixN" of M .deb
  158. are generated.
  159. .
  160. .SH EXIT STATUS
  161. An exit status of 0 indicates that the requested split, merge, or
  162. other command succeeded.
  163. .B \-\-info
  164. commands count as successful even if the files are not binary package
  165. parts.
  166. An exit status of 1 occurs only with
  167. .B \-\-auto
  168. and indicates that the
  169. .I part
  170. file was not a binary package part.
  171. An exit status of 2 indicates some kind of trouble, such as a system
  172. call failure, a file that looked like a package part file but was
  173. corrupted, a usage error or some other problem.
  174. .
  175. .SH BUGS
  176. Full details of the packages in the queue are impossible to get
  177. without digging into the queue directory yourself.
  178. There is no easy way to test whether a file that may be a binary
  179. package part is one.
  180. .
  181. .SH FILES
  182. .TP
  183. .I /var/lib/dpkg/parts
  184. The default queue directory for part files awaiting automatic
  185. reassembly.
  186. The filenames used in this directory are in a format internal to
  187. .B dpkg\-split
  188. and are unlikely to be useful to other programs, and in any case the
  189. filename format should not be relied upon.
  190. .
  191. .SH "SEE ALSO"
  192. .BR deb (5),
  193. .BR deb\-control (5),
  194. .BR dpkg\-deb (1),
  195. .BR dpkg (1).
  196. .
  197. .SH AUTHOR
  198. Copyright \(co 1995-1996 Ian Jackson
  199. .sp
  200. This is free software; see the GNU General Public Licence version 2 or
  201. later for copying conditions. There is NO WARRANTY.