deb (file format)
||This article includes a list of references, but its sources remain unclear because it has insufficient inline citations. (June 2010)|
The GNOME icon for deb files
|Internet media type||
|Type of format||Package management system|
|Container for||Software package|
|Extended from||ar archive, tarball|
Debian packages are standard Unix ar archives that include two tar archives optionally compressed with gzip (zlib), Bzip2, lzma, or xz (lzma2): one archive holds the control information and another contains the program data.
Some core Debian packages are available as udebs (“micro debs”), and are typically used only for bootstrapping a Debian installation. Although these files use the udeb filename extension, they adhere to the same structure specification as ordinary deb files. However, unlike their deb counterparts, udeb packages contain only essential functional files. In particular, documentation files are normally omitted. udeb packages are not installable on a standard Debian system, but are used in Debian-Installer.
Since Debian 0.93, a deb file is implemented as an ar archive. Canonical contents of this archive are three files:
- debian-binary: deb format version number. This is "2.0" for current versions of Debian.
- control.tar, control.tar.gz or control.tar.xz: all package meta-information. It tells dpkg what to configure when the package is being installed.
- data.tar, data.tar.gz, data.tar.bz2, data.tar.lzma or data.tar.xz: the actual installable files.
The debian-binary file must be the first entry in the archive, otherwise it will not be recognized as a Debian package.
- List of archive formats
- RPM Package Manager