1. NAME▲
dpkg-split - Debian package archive split/join tool .
2. SYNOPSIS ▲
dpkg-split [ options ] command.
3. DESCRIPTION ▲
dpkg-split splits Debian binary package files into smaller parts and reassembles them again, to support the storage of large package files on small media such as floppy disks. It can be operated manually using the
R --split options. It also has an automatic mode, invoked using the
--auto option, where it maintains a queue of parts seen but not yet reassembled and reassembles a package file when it has seen all of its parts. The
R --listq options allow the management of the queue. All splitting, joining and queueing operations produce informative messages on standard output; these may safely be ignored. .
4. COMMANDS ▲
R -s
Splits a single Debian binary package into several parts. The parts are named .IB prefix . N of M .deb where Nis the part number, starting at 1, and Mis the total number of parts (both in decimal). If no prefixis supplied then the complete-archivefilename is taken, including directory, with any trailing
.deb removed.
R -j
Joins the parts of a package file together, reassembling the original file as it was before it was split. The part files given as arguments must be all the parts of exactly the same original binary file. Each part must occur exactly once in the argument list, though the parts to not need to be listed in order. The parts must of course all have been generated with the same part size specified at split time, which means that they must usually have been generated by the same invocation of
R The parts' filenames are not significant for the reassembly process. By default the output file is called .IB package - version .deb\fR.
R -I
Prints information, in a human-readable format, about the part file(s) specified. Arguments which are not binary package parts produce a message saying so instead (but still on standard output).
R -a
Automatically queue parts and reassemble a package if possible. The partspecified is examined, and compared with other parts of the same package (if any) in the queue of packages file parts. If all parts of the package file of which partis a part are available then the package is reassembled and written to complete-output(which should not usually already exist, though this is not an error). If not then the partis copied into the queue and complete-outputis not created. If partis not a split binary package part then
dpkg-split will exit with status 1; if some other trouble occurs then it will exit with status 2. The
R --output option must be supplied when using
R --auto . (If this were not mandatory the calling program would not know what output file to expect.)
R -l
Lists the contents of the queue of packages to be reassembled. For each package file of which parts are in the queue the output gives the name of the package, the parts in the queue, and the total number of bytes stored in the queue.
R -d
This discards parts from the queue of those waiting for the remaining parts of their packages. If no packageis specified then the queue is cleared completely; if any are specified then only parts of the relevant package(s) are deleted.
R -h
Show the usage message and exit.
R --version
Show the version and exit. .
5. OPTIONS ▲
- --depotdir directory
Specifies an alternative directory for the queue of parts awaiting automatic reassembly. The default is
R /var/lib/dpkg .
R -S
Specifies the maximum part size when splitting, in kibibytes (1024 bytes). The default is 450 KiB.
R -o
Specifies the output file name for a reassembly. This overrides the default for a manual reassembly ( --join ) and is mandatory for an automatic queue-or-reassemble ( --auto ).
R -Q
When doing automatic queue-or-reassembly
dpkg-split usually prints a message if it is given a partthat is not a binary package part. This option suppresses this message, to allow programs such as
dpkg to cope with both split and unsplit packages without producing spurious messages.
R --msdos
Forces the output filenames generated by
--split to be msdos-compatible. This mangles the prefix - either the default derived from the input filename or the one supplied as an argument: alphanumerics are lowercased, plus signs are replaced by
R x 's and all other characters are discarded. The result is then truncated as much as is necessary, and filenames of the form .IB "prefixN" of M .deb are generated. .
6. EXIT STATUS ▲
An exit status of 0 indicates that the requested split, merge, or other command succeeded.
--info commands count as successful even if the files are not binary package parts. An exit status of 1 occurs only with
--auto and indicates that the partfile was not a binary package part. An exit status of 2 indicates some kind of trouble, such as a system call failure, a file that looked like a package part file but was corrupted, a usage error or some other problem. .
7. BUGS ▲
dpkg-split uses some rather out-of-date conventions for the the filenames of Debian packages. Full details of the packages in the queue are impossible to get without digging into the queue directory yourself. There is no easy way to test whether a file that may be a binary package part is one. The architecture is not represented in the part files' header, only in the control information of the contained binary package file, and it is not present in the filenames generated. .
8. FILES ▲
- /var/lib/dpkg/parts
The default queue directory for part files awaiting automatic reassembly. The filenames used in this directory are in a format internal to
dpkg-split and are unlikely to be useful to other programs, and in any case the filename format should not be relied upon. .
9. SEE ALSO ▲
R deb (5),
R deb-control (5),
R dpkg-deb (1),
R dpkg (1). .
10. AUTHOR ▲
Copyright © 1995-1996 Ian Jackson
This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is NO WARRANTY.