.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "deb 5" .TH deb 5 2026-03-06 1.23.7-dirty "dpkg suite" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME deb \- Debian binary package format .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fIfilename\fR\fB.deb\fR .SH DESCRIPTION .IX Header "DESCRIPTION" The \&\fB.deb\fR format is the Debian binary package file format. It is understood since dpkg 0.93.76, and is generated by default since dpkg 1.2.0 and 1.1.1elf (i386/ELF builds). .PP The format described here is used since Debian 0.93; details of the old format are described in \&\fBdeb\-old\fR\|(5). .SH FORMAT .IX Header "FORMAT" The file is an \&\fBar\fR archive with a magic value of \&\fB!\fR. Only the common \fBar\fR archive format is supported, with no long file name extensions, but with file names containing an optional trailing slash, which limits their length to 15 characters (from the 16 allowed). File sizes are limited to 10 ASCII decimal digits, allowing for up to approximately 9536.74 MiB member files. .PP The \fBtar\fR archives currently allowed are: .IP \(bu 4 old\-style (v7) format .IP \(bu 4 pre\-POSIX ustar format .IP \(bu 4 subset of the GNU format .Sp New style long pathnames and long linknames, supported since dpkg 1.4.1.17; large file metadata since dpkg 1.18.24. .IP \(bu 4 POSIX ustar format .Sp Long names supported since dpkg 1.15.0. .PP Unrecognized tar typeflags are considered an error. By default each tar entry size inside a tar archive is limited to 11 ASCII octal digits, allowing for up to 8 GiB tar entries. The GNU large file metadata support permits 95\-bit tar entry sizes and negative timestamps, and 63\-bit UID, GID and device numbers, which amounts to practically unlimited values. .PP The \fBar\fR archive is composed of multiple members in a specific order: .IP \fBdebian\-binary\fR 4 .IX Item "debian-binary" The first required member contains a series of lines, separated by newlines. Currently only one line is present, the format version number, \&\fB2.0\fR at the time this manual page was written. Programs which read new\-format archives should be prepared for the minor number to be increased and new lines to be present, and should ignore these if this is the case. .Sp If the major number has changed, an incompatible change has been made and the program should stop. If it has not, then the program should be able to safely continue, unless it encounters an unexpected member in the archive (except at the end), as described below. .IP \fBcontrol.tar\fR 4 .IX Item "control.tar" The second required member is a tar archive containing the package metadata. .Sp It can use the following compression: .RS 4 .IP \(bu 4 none (supported since dpkg 1.17.6) .IP \(bu 4 gzip (with \fB.gz\fR extension) .IP \(bu 4 xz (with \fB.xz\fR extension, supported since dpkg 1.17.6) .IP \(bu 4 zstd (with \fB.zst\fR extension, supported since dpkg 1.21.18) .RE .RS 4 .Sp It contains a series of plain files: .IP \fBcontrol\fR 4 .IX Item "control" Mandatory control information, in \fBdeb822\fR\|(5) format. .IP \fBmd5sums\fR 4 .IX Item "md5sums" .PD 0 .IP \fBconffiles\fR 4 .IX Item "conffiles" .IP \fBtriggers\fR 4 .IX Item "triggers" .IP \fBshlibs\fR 4 .IX Item "shlibs" .IP \fBsymbols\fR 4 .IX Item "symbols" .PD Optional package metadata. .IP \fBpreinst\fR 4 .IX Item "preinst" .PD 0 .IP \fBpostinst\fR 4 .IX Item "postinst" .IP \fBprerm\fR 4 .IX Item "prerm" .IP \fBpostrm\fR 4 .IX Item "postrm" .PD Optional maintainer scripts. .RE .RS 4 .Sp The control tarball may optionally contain an entry for \(oq\fB.\fR\(cq, the current directory. .RE .IP \fBdata.tar\fR 4 .IX Item "data.tar" The third, last required member contains the filesystem as a tar archive. .Sp It can use the following compression: .RS 4 .IP \(bu 4 none (supported since dpkg 1.10.24) .IP \(bu 4 gzip (with \fB.gz\fR extension) .IP \(bu 4 xz (with \fB.xz\fR extension, supported since dpkg 1.15.6) .IP \(bu 4 zstd (with \fB.zst\fR extension, supported since dpkg 1.21.18) .IP \(bu 4 bzip2 (with \fB.bz2\fR extension, supported since dpkg 1.10.24) .IP \(bu 4 lzma (with \fB.lzma\fR extension, supported since dpkg 1.13.25) .RE .RS 4 .RE .PP These members must occur in this exact order. Current implementations should ignore any additional members after \&\fBdata.tar\fR. Further members may be defined in the future, and (if possible) will be placed after these three. Any additional members that may need to be inserted after \&\fBdebian\-binary\fR and before \&\fBcontrol.tar\fR or \&\fBdata.tar\fR and which should be safely ignored by older programs, will have names starting with an underscore, \(oq\fB_\fR\(cq. .PP Those new members which won\*(Aqt be able to be safely ignored will be inserted before \&\fBdata.tar\fR with names starting with something other than underscores, or will (more likely) cause the major version number to be increased. .SH "MEDIA TYPE" .IX Header "MEDIA TYPE" .SS Current .IX Subsection "Current" application/vnd.debian.binary\-package .SS Deprecated .IX Subsection "Deprecated" application/x\-debian\-package .PP application/x\-deb .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdeb\-old\fR\|(5), \&\fBdpkg\-deb\fR\|(1), \&\fBdeb\-control\fR\|(5), \&\fBdeb\-conffiles\fR\|(5), \&\fBdeb\-md5sums\fR\|(5), \&\fBdeb\-triggers\fR\|(5), \&\fBdeb\-shlibs\fR\|(5), \&\fBdeb\-symbols\fR\|(5), \&\fBdeb\-preinst\fR\|(5), \&\fBdeb\-postinst\fR\|(5), \&\fBdeb\-prerm\fR\|(5), \&\fBdeb\-postrm\fR\|(5).