dpkg (1.18.25) stretch; urgency=medium
[dpkg] / man / dpkg-split.man
CommitLineData
1479465f
GJ
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
22dpkg\-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
30splits Debian binary package files into smaller parts and reassembles
31them again, to support the storage of large package files on small
32media such as floppy disks.
33
34It can be operated manually using the
35.BR \-\-split ", " \-\-join " and " \-\-info
36options.
37
38It also has an automatic mode, invoked using the
39.B \-\-auto
40option, where it maintains a queue of parts seen but not yet
41reassembled and reassembles a package file when it has seen all of its
42parts. The
43.BR \-\-listq " and " \-\-discard
44options allow the management of the queue.
45
46All splitting, joining and queueing operations produce informative
47messages on standard output; these may safely be ignored.
48.
49.SH COMMANDS
50.TP
51.BR \-s ", " \-\-split " \fIcomplete-archive\fP [\fIprefix\fP]"
52Splits a single Debian binary package into several parts.
53
54The parts are named
55.IB prefix . N of M .deb
56where
57.I N
58is the part number, starting at 1, and
59.I M
60is the total number of parts (both in decimal).
61
62If no
63.I prefix
64is supplied then the
65.I complete-archive
66filename is taken, including directory, with any trailing
67.B .deb
68removed.
69.TP
70.BR \-j ", " \-\-join " \fIpart\fP..."
71Joins the parts of a package file together, reassembling the original
72file as it was before it was split.
73
74The part files given as arguments must be all the parts of exactly the
75same original binary file. Each part must occur exactly once in the
76argument list, though the parts to not need to be listed in order.
77
78The parts must of course all have been generated with the same part
79size specified at split time, which means that they must usually have
80been generated by the same invocation of
81.BR "dpkg\-split \-\-split" .
82
83The parts' filenames are not significant for the reassembly process.
84
85By default the output file is called
86.IB package _ version _ arch .deb\fR.
87
88.TP
89.BR \-I ", " \-\-info " \fIpart\fP..."
90Prints information, in a human-readable format, about the part file(s)
91specified. Arguments which are not binary package parts produce a
92message saying so instead (but still on standard output).
93.TP
94.BR \-a ", " "\-\-auto \-o" " \fIcomplete-output part\fP"
95Automatically queue parts and reassemble a package if possible.
96
97The
98.I part
99specified is examined, and compared with other parts of the same
100package (if any) in the queue of packages file parts.
101
102If all parts of the package file of which
103.I part
104is a part are available then the package is reassembled and written to
105.I complete-output
106(which should not usually already exist, though this is not an
107error).
108
109If not then the
110.I part
111is copied into the queue and
112.I complete-output
113is not created.
114
115If
116.I part
117is not a split binary package part then
118.B dpkg\-split
119will exit with status \fB1\fP; if some other trouble occurs then it will
120exit with status \fB2\fP.
121
122The
123.BR \-\-output " or " \-o
124option must be supplied when using
125.BR \-\-auto .
126(If this were not mandatory the calling program would not know what
127output file to expect.)
128.TP
129.BR \-l ", " \-\-listq
130Lists the contents of the queue of packages to be reassembled.
131
132For each package file of which parts are in the queue the output gives
133the name of the package, the parts in the queue, and the total number
134of bytes stored in the queue.
135.TP
136.BR \-d ", " \-\-discard " [\fIpackage\fP...]"
137This discards parts from the queue of those waiting for the remaining
138parts of their packages.
139
140If no
141.I package
142is specified then the queue is cleared completely; if any are
143specified then only parts of the relevant package(s) are deleted.
144.TP
145.BR \-? ", " \-\-help
146Show the usage message and exit.
147.TP
148.BR \-\-version
149Show the version and exit.
150.
151.SH OPTIONS
152.TP
153.BI \-\-depotdir " directory"
154Specifies an alternative directory for the queue of parts awaiting
155automatic reassembly. The default is
156.BR %ADMINDIR% .
157.TP
158.BR \-S ", " \-\-partsize " \fIkibibytes\fP"
159Specifies the maximum part size when splitting, in kibibytes (1024
160bytes). The default is 450 KiB.
161.TP
162.BR \-o ", " \-\-output " \fIcomplete-output\fP"
163Specifies the output file name for a reassembly.
164
165This overrides the default for a manual reassembly
166.RB ( \-\-join )
167and is mandatory for an automatic queue-or-reassemble
168.RB ( \-\-auto ).
169.TP
170.BR \-Q ", " \-\-npquiet
171When doing automatic queue-or-reassembly
172.B dpkg\-split
173usually prints a message if it is given a
174.I part
175that is not a binary package part. This option suppresses this
176message, to allow programs such as
177.B dpkg
178to cope with both split and unsplit packages without producing
179spurious messages.
180.TP
181.BR \-\-msdos
182Forces the output filenames generated by
183.B \-\-split
184to be msdos-compatible.
185
186This mangles the prefix - either the default derived from the input
187filename or the one supplied as an argument: alphanumerics are
188lowercased, plus signs are replaced by
189.BR x 's
190and all other characters are discarded.
191
192The result is then truncated as much as is necessary, and filenames of
193the form
194.IB "prefixN" of M .deb
195are generated.
196.
197.SH EXIT STATUS
198.TP
199.B 0
200The requested split, merge, or other command succeeded.
201.B \-\-info
202commands count as successful even if the files are not binary package
203parts.
204.TP
205.B 1
206Only occurs with
207.B \-\-auto
208and indicates that the
209.I part
210file was not a binary package part.
211.TP
212.B 2
213Fatal or unrecoverable error due to invalid command-line usage,
214a file that looked like a package part file but was corrupted, or
215interactions with the system, such as accesses to the database,
216memory allocations, etc.
217.
218.SH ENVIRONMENT
219.TP
220.B SOURCE_DATE_EPOCH
221If set, it will be used as the timestamp (as seconds since the epoch) in
222the \fBdeb\-split\fP(5)'s \fBar\fP(5) container.
223.
224.SH FILES
225.TP
226.I %ADMINDIR%/parts
227The default queue directory for part files awaiting automatic
228reassembly.
229
230The filenames used in this directory are in a format internal to
231.B dpkg\-split
232and are unlikely to be useful to other programs, and in any case the
233filename format should not be relied upon.
234.
235.SH BUGS
236Full details of the packages in the queue are impossible to get
237without digging into the queue directory yourself.
238
239There is no easy way to test whether a file that may be a binary
240package part is one.
241.
242.SH SEE ALSO
243.BR deb (5),
244.BR deb\-control (5),
245.BR dpkg\-deb (1),
246.BR dpkg (1).