summaryrefslogtreecommitdiff
path: root/doc/deb.5
blob: e9efea5c5b72eb371eaa4ec53762bd36e0ff86d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.\" Hey, Emacs!  This is an -*- nroff -*- source file.
.\" Authors: Raul Miller, Ian Jackson
.TH DEB 5 "January 2000" "Debian Project" "Debian"
.SH NAME 
deb \- Debian binary package format
.SH SYNOPSIS
.IB filename .deb
.SH DESCRIPTION
The
.B .deb
format is the Debian binary package file format. It is understood by
dpkg 0.93.76 and later, and is generated by default by all versions
of dpkg since 1.2.0 and all i386/ELF versions since 1.1.1elf.
.PP
The format described here is used since Debian 0.93; details of the
old format are described in
.BR deb-old (5).
.SH FORMAT
The file is an
.B ar
archive with a magic number of
.BR !<arch> .
.PP
The first member is named
.B debian-binary
and contains a series of lines, separated by newlines.  Currently only
one line is present, the format version number,
.BR 2.0 
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.
.PP
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.
.PP
The second required member is named
.B control.tar.gz .
It is a gzipped tar archive containing the package control information,
as a series of plain files, of which the file
.B control
is mandatory and contains the core control information.  Please see the
.I "Debian Packaging Manual, section 2.2"
for details of these files.  The control tarball may optionally contain
an entry for
.RB ` . ',
the current directory.
.PP
The third, last required member is named
.B data.tar.gz .
It contains the filesystem archive as a gzipped tar archive.
.PP
These members must occur in this exact order.  Current implementations
should ignore any additional members after
.BR data.tar.gz .
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 before
.B data.tar.gz
and which should be safely ignored by older programs, will have names
starting with an underscore,
.RB ` _ '.
.PP
Those new members which won't be able to be safely ignored will be
inserted before
.B data.tar.gz
with names starting with something other than underscores, or will
(more likely) cause the major version number to be increased.
.SH SEE ALSO
.BR deb (5),
.BR dpkg-deb (8),
.BR deb-control (5),
.IR "Debian Packaging Manual".