4.6. The Debian archive
The Debian distribution consists of a lot of packages (currently around 30000
source packages) and a few additional files (such as documentation and installation disk images).
Here is an example directory tree of a complete Debian archive:
dists/stable/main/
dists/stable/main/binary-amd64/
dists/stable/main/binary-armel/
dists/stable/main/binary-i386/
...
dists/stable/main/source/
...
dists/stable/main/disks-amd64/
dists/stable/main/disks-armel/
dists/stable/main/disks-i386/
...
dists/stable/contrib/
dists/stable/contrib/binary-amd64/
dists/stable/contrib/binary-armel/
dists/stable/contrib/binary-i386/
...
dists/stable/contrib/source/
dists/stable/non-free/
dists/stable/non-free/binary-amd64/
dists/stable/non-free/binary-armel/
dists/stable/non-free/binary-i386/
...
dists/stable/non-free/source/
dists/testing/
dists/testing/main/
...
dists/testing/contrib/
...
dists/testing/non-free/
...
dists/unstable
dists/unstable/main/
...
dists/unstable/contrib/
...
dists/unstable/non-free/
...
pool/
pool/main/a/
pool/main/a/apt/
...
pool/main/b/
pool/main/b/bash/
...
pool/main/liba/
pool/main/liba/libalias-perl/
...
pool/main/m/
pool/main/m/mailx/
...
pool/non-free/f/
pool/non-free/f/firmware-nonfree/
...
As you can see, the top-level directory contains two directories, dists/
and pool/
. The latter is a “pool” in which the packages actually are, and which is handled by the archive maintenance database and the accompanying programs. The former contains the distributions, stable
, testing
and unstable
. The Packages
and Sources
files in the distribution subdirectories can reference files in the pool/
directory. The directory tree below each of the distributions is arranged in an identical manner. What we describe below for stable
is equally applicable to the unstable
and testing
distributions.
dists/stable
contains three directories, namely main
, contrib
, and non-free
.
In each of the areas, there is a directory for the source packages (source
) and a directory for each supported architecture (binary-i386
, binary-amd64
, etc.).
The main
area contains additional directories which hold the disk images and some essential pieces of documentation required for installing the Debian distribution on a specific architecture (disks-i386
, disks-amd64
, etc.).