dpkg-split(1)
๐ dpkg-split(1) โ the dpkg suite's split/join girlie ๐
okay so first things first, this whole page lives in the dpkg suite family, and it's literally the manual for dpkg-split(1). she's a niche little icon but she does her job fr fr ๐
โจ NAME โจ
dpkg-split โ the Debian package archive split/join tool ๐ฆ like she literally takes big .deb files apart and puts them back together, no cap.
โจ SYNOPSIS โจ
dpkg-split [option...] command
โจ DESCRIPTION โจ
okay bestie, here's the vibe: dpkg-split splits Debian binary package files into smaller parts, then reassembles them again. why?? because sometimes you gotta store a huge package file on tiny media, like floppy disks ๐ญ yes floppy disks. vintage. iconic. ๐
you can run it manually with --split, --join and --info. very hands-on, very main character energy.
she also has an automatic mode, invoked with --auto, where she keeps a queue of parts she's seen but hasn't reassembled yet, and reassembles the package file once she's seen all its parts. ๐ง and --listq plus --discard let you manage that queue, so you're not just raw-dogging a mystery directory.
ngl all splitting, joining and queueing operations print informative messages on standard output โ and these may safely be ignored. so if you see chatter, that's just her talking. she's chatty. we love her. ๐ฌ
โจ COMMANDS โจ
-s,--splitcomplete-archive [prefix] โ splits a single Debian binary package into several parts.
the parts are named prefix.NofM.deb where N is the part number, starting at 1, and M is the total number of parts (both in decimal). โญ
if no prefix is supplied then the complete-archive filename is taken, including directory, with any trailing .deb removed. ๐
-j,--joinpart... โ joins the parts of a package file together, reassembling the original file exactly 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 do not need to be listed in order. (yes, the original really does say "to not need" โ we're keeping it, it's part of the lore ๐)
the parts must all have been generated with the same part size specified at split time, which means they must usually have been generated by the same invocation of dpkg-split --split. ๐ฅ
the parts' filenames are not significant for the reassembly process. she doesn't care what you named them, she just knows. ๐
by default the output file is called package_version_arch.deb.
-I,--infopart... โ prints information about the part file(s) specified, in a human-readable format. arguments that aren't binary package parts produce a message saying so instead โ but still on standard output, because she's polite like that. ๐ธ-a,--auto-ocomplete-output part โ automatically queue parts and reassemble a package if possible. โจ
the part specified is examined and compared with other parts of the same package (if any) in the queue of package file parts.
if all parts of the package file of which part is 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 part is copied into the queue and complete-output is not created.
if part is 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--outputor-ooption must be supplied when using--auto. (if this were not mandatory the calling program would not know what output file to expect.) so like, it's not optional, bestie, it's the whole point.
-l,--listqโ 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.
-d,--discard[package...] โ discards parts from the queue of those waiting for the remaining parts of their packages. ๐๏ธ
if no package is specified then the queue is cleared completely; if any are specified then only parts of the relevant package(s) are deleted.
-?,--helpโ show the usage message and exit. ๐ซถ--versionโ show the version and exit. โญ
โจ OPTIONS โจ
--depotdirdirectory โ specifies an alternative directory for the queue of parts awaiting automatic reassembly. the default is/var/lib/dpkg/parts. ๐--admindirdirectory โ set the administrative directory to directory. this is where thestatoverridefile is stored. defaults to ยซ/var/lib/dpkgยป ifDPKG_ADMINDIRhas not been set.
supported since dpkg 1.21.10. ๐
--rootdirectory โ set the root directory to directory, which sets the installation directory to ยซdirectoryยป and the administrative directory to ยซdirectory/var/lib/dpkgยป ifDPKG_ROOThas not been set.
supported since dpkg 1.21.10. ๐
-S,--partsizekibibytes โ specifies the maximum part size when splitting, in kibibytes (1024bytes). the default is450KiB. ๐-o,--outputcomplete-output โ 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). ๐ฅ
-Q,--npquietโ when doing automatic queue-or-reassembly,dpkg-splitusually prints a message if it's given a part that is not a binary package part. this option suppresses that message, so programs such asdpkgcan cope with both split and unsplit packages without producing spurious messages. ๐คซ (npquiet = no noise, she's being quiet, slay)--msdosโ obsolete since dpkg1.23.0, it has no effect. ๐ literally a ghost. she's still here for historical reasons and she does nothing. respect her journey.
โจ EXIT STATUS โจ
0โ the requested split, merge, or other command succeeded.--infocommands count as successful even if the files are not binary package parts. ๐1โ only occurs with--autoand indicates that the part file was not a binary package part. ๐2โ fatal or unrecoverable error due to invalid command-line usage, a file that looked like a package part file but was corrupted, or interactions with the system, such as accesses to the database, memory allocations, etc. ๐ญ
โจ ENVIRONMENT โจ
DPKG_ROOTโ if set and the--rootoption has not been specified, it will be used as the filesystem root directory.
supported since dpkg 1.21.10. ๐ฑ
DPKG_ADMINDIRโ if set and the--admindiror--rootoptions have not been specified, it will be used as the dpkg data directory.
supported since dpkg 1.21.10. ๐ฑ
DPKG_DEBUGโ sets the debug mask from an octal value. the currently accepted flags are described in thedpkg --debugoption, but not all these flags might have an effect on this program. ๐
supported since dpkg 1.21.10. ๐ฑ
DPKG_COLORSโ sets the color mode. the currently accepted values are:auto(default),alwaysandnever. ๐
supported since dpkg 1.18.5. ๐ฑ
DPKG_NLSโ if set, it will be used to decide whether to activate Native Language Support, also known as internationalization (or i18n) support. the accepted values are:0and1(default). ๐
supported since dpkg 1.22.7. ๐ฑ
SOURCE_DATE_EPOCHโ if set, it will be used as the timestamp (as seconds since the epoch) in thedeb-split(5)'sar(5)container. ๐ฐ๏ธ
supported since dpkg 1.18.11. ๐ฑ
โจ 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. ๐ so like, don't build anything on top of those names, bestie, they're not stable.
โจ SECURITY โจ
okay this part is serious, so listen up ๐จ
examining or joining untrusted split package archives should be considered a security boundary, and any breakage of that boundary stemming from these operations should be considered a security vulnerability. performing these operations over untrusted data as root is strongly discouraged. ๐ like, don't.
auto-accumulating and discarding split package parts are considered privileged operations that might allow root escalation. these operations must never be delegated to an untrusted user or be done on untrusted packages, as that might allow root access to the system. ๐
splitting package archives should only be performed over trusted data. ๐ซถ
โจ BUGS โจ
- full details of the packages in the queue are impossible to get without digging into the queue directory yourself. ๐ต๏ธโโ๏ธ like, she's not gonna hand you the receipts.
- there is no easy way to test whether a file that may be a binary package part is one. ๐ญ you just gotta vibe check it, and honestly the vibe check is unreliable.
โจ SEE ALSO โจ
deb(5), deb-control(5), dpkg-deb(1), dpkg(1). ๐ฆ
and that's the whole page, bestie!! ๐ this was dpkg-split(1) from the dpkg suite, version 1.23.11-dirty, dated 2026-09-09 โ go forth and split responsibly, mwah ๐โจ๐
๐ฆ where this page comes from
- arch rolling: dpkg 1.23.11-1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms