dpkg-split.man 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. .\" dpkg manual page - dpkg-split(1)
  2. .\"
  3. .\" Copyright © 1995-1996 Ian Jackson <ijackson@chiark.greenend.org.uk>
  4. .\" Copyright © 2011 Guillem Jover <guillem@debian.org>
  5. .\"
  6. .\" This is free software; you can redistribute it and/or modify
  7. .\" it under the terms of the GNU General Public License as published by
  8. .\" the Free Software Foundation; either version 2 of the License, or
  9. .\" (at your option) any later version.
  10. .\"
  11. .\" This is distributed in the hope that it will be useful,
  12. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. .\" GNU General Public License for more details.
  15. .\"
  16. .\" You should have received a copy of the GNU General Public License
  17. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. .
  19. .TH dpkg\-split 1 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
  20. .nh
  21. .SH NAME
  22. dpkg\-split \- Debian package archive split/join tool
  23. .
  24. .SH SYNOPSIS
  25. .B dpkg\-split
  26. .RI [ option "...] " command
  27. .
  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. .
  46. .SH COMMANDS
  47. .TP
  48. .BR \-s ", " \-\-split " \fIcomplete-archive\fP [\fIprefix\fP]"
  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 \-j ", " \-\-join " \fIpart\fP..."
  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 _ arch .deb\fR.
  78. .TP
  79. .BR \-I ", " \-\-info " \fIpart\fP..."
  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 \-a ", " "\-\-auto \-o" " \fIcomplete-output part\fP"
  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 \fB1\fP; if some other trouble occurs then it will
  106. exit with status \fB2\fP.
  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 \-l ", " \-\-listq
  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 \-d ", " \-\-discard " [\fIpackage\fP...]"
  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
  129. Show the usage message and exit.
  130. .TP
  131. .BR \-\-version
  132. Show the version and exit.
  133. .
  134. .SH OPTIONS
  135. .TP
  136. .BI \-\-depotdir " directory"
  137. Specifies an alternative directory for the queue of parts awaiting
  138. automatic reassembly. The default is
  139. .BR %ADMINDIR% .
  140. .TP
  141. .BR \-S ", " \-\-partsize " \fIkibibytes\fP"
  142. Specifies the maximum part size when splitting, in kibibytes (1024
  143. bytes). The default is 450 KiB.
  144. .TP
  145. .BR \-o ", " \-\-output " \fIcomplete-output\fP"
  146. Specifies the output file name for a reassembly.
  147. This overrides the default for a manual reassembly
  148. .RB ( \-\-join )
  149. and is mandatory for an automatic queue-or-reassemble
  150. .RB ( \-\-auto ).
  151. .TP
  152. .BR \-Q ", " \-\-npquiet
  153. When doing automatic queue-or-reassembly
  154. .B dpkg\-split
  155. usually prints a message if it is given a
  156. .I part
  157. that is not a binary package part. This option suppresses this
  158. message, to allow programs such as
  159. .B dpkg
  160. to cope with both split and unsplit packages without producing
  161. spurious messages.
  162. .TP
  163. .BR \-\-msdos
  164. Forces the output filenames generated by
  165. .B \-\-split
  166. to be msdos-compatible.
  167. This mangles the prefix - either the default derived from the input
  168. filename or the one supplied as an argument: alphanumerics are
  169. lowercased, plus signs are replaced by
  170. .BR x 's
  171. and all other characters are discarded.
  172. The result is then truncated as much as is necessary, and filenames of
  173. the form
  174. .IB "prefixN" of M .deb
  175. are generated.
  176. .
  177. .SH EXIT STATUS
  178. .TP
  179. .B 0
  180. The requested split, merge, or other command succeeded.
  181. .B \-\-info
  182. commands count as successful even if the files are not binary package
  183. parts.
  184. .TP
  185. .B 1
  186. Only occurs with
  187. .B \-\-auto
  188. and indicates that the
  189. .I part
  190. file was not a binary package part.
  191. .TP
  192. .B 2
  193. Fatal or unrecoverable error due to invalid command-line usage,
  194. a file that looked like a package part file but was corrupted, or
  195. interactions with the system, such as accesses to the database,
  196. memory allocations, etc.
  197. .
  198. .SH ENVIRONMENT
  199. .TP
  200. .B SOURCE_DATE_EPOCH
  201. If set, it will be used as the timestamp (as seconds since the epoch) in
  202. the \fBdeb\-split\fP(5)'s \fBar\fP(5) container.
  203. .
  204. .SH FILES
  205. .TP
  206. .I %ADMINDIR%/parts
  207. The default queue directory for part files awaiting automatic
  208. reassembly.
  209. The filenames used in this directory are in a format internal to
  210. .B dpkg\-split
  211. and are unlikely to be useful to other programs, and in any case the
  212. filename format should not be relied upon.
  213. .
  214. .SH BUGS
  215. Full details of the packages in the queue are impossible to get
  216. without digging into the queue directory yourself.
  217. There is no easy way to test whether a file that may be a binary
  218. package part is one.
  219. .
  220. .SH SEE ALSO
  221. .BR deb (5),
  222. .BR deb\-control (5),
  223. .BR dpkg\-deb (1),
  224. .BR dpkg (1).