Skip to content
EntityQ305976· pop 27· linked from 237 articles

Also known as .deb, Debian package, Debian Linux Package, Debian binary package

Debian software package format

Described at

deb(5) — dpkg-dev — Debian trixie — Debian Manpages

manpages.debian.org →

The .deb 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). The format described here is used since Debian 0.93; details of the old format are described in deb-old(5) . The tar archives currently allowed are, the old-style (v7) format, the pre-POSIX ustar format, a subset of the GNU format (new style long pathnames and long linknames, supported since dpkg 1.4.1.17; large file metadata since dpkg 1.18.24), and the POSIX ustar format (long names supported since dpkg 1.15.0). Unrecognized tar typeflags are considered an error. 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. The first member is named debian-binary and contains a series of lines, separated by newlines. Currently only one line is present, the format version number, 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. 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. The second required member is named control.tar . It is a tar archive containing the package control information, either not compressed (supported since dpkg 1.17.6), or compressed with gzip (with .gz extension) or xz (with .xz extension, supported since 1.17.6), zstd (with .zst extension, supported since dpkg 1.21.18), as a series of plain files, of which the file control is mandatory and contains the core control information, the md5sums , conffiles , triggers , shlibs and symbols files contain optional control information, and the preinst , postinst , prerm and postrm files are optional maintainer scripts. The control tarball may optionally contain an entry for ‘ . ’, the current directory. The third, last required member is named data.tar . It contains the filesystem as a tar archive, either not compressed (supported since dpkg 1.10.24), or compressed with gzip (with .gz extension), xz (with .xz extension, supported since dpkg 1.15.6), zstd (with .zst extension, supported since dpkg 1.21.18), bzip2 (with .bz2 extension, supported since dpkg 1.10.24) or lzma (with .lzma extension, supported since dpkg 1.13.25). These members must occur in this exact order. Current implementations should ignore any additional members after data.tar . 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 debian-binary and before control.tar or data.tar and which should be safely ignored by older programs, will have names starting with an underscore, ‘ ’. Those new members which won't be able to be safely ignored will be inserted before data.tar with names starting with something other than underscores, or will (more likely) cause the major version number to be increased.

Excerpt from a page describing this subject · 8,658 chars · not written by Vinony

Wikidata facts

Instance of
file format
Based on
ar
Image
Deb File Structure.svg
Show 5 more facts
facet of
dpkg
file extension
ipk
media type
application/x-deb
file format identification pattern
213C617263683E0A64656269616E2D62696E617279
Sources (3)

via Wikidata · CC0

Article · Polski

deb – format pakietu instalacyjnego używanego przez system operacyjny Debian GNU/Linux – jedną z najstarszych, rozwijanych dystrybucji Linuksa. Wszystkie pakiety w tym formacie posiadają rozszerzenie .deb. Jest to skrót od „Deborah” (inaczej: „Debora”), imienia byłej żony twórcy Debiana, Iana Murdocka. Pakiet deb (i jego instalator dpkg) posiada zaawansowaną kontrolę powiązań i zależności pomiędzy poszczególnymi składnikami systemu – programami i używanymi przez nie bibliotekami. Dzięki temu instalując nowy program ma się pewność, że nie będzie miał miejsca konflikt z innymi zainstalowanymi programami. W przeciwnym wypadku instalowany program mógłby przerwać funkcjonowanie z powodu braku poszczególnych składników, które są wymagane do prawidłowego działania. Pakiety deb, które znajdują się na dysku lub płycie CD-ROM, można zainstalować w systemie Debian GNU/Linux i pochodnych za pomocą polecenia dpkg. Można je instalować również bezpośrednio z repozytoriów w Internecie za pomocą programu apt-get. Większość współczesnych dystrybucji zawiera narzędzia instalacyjne z graficznym interfejsem użytkownika, np. GDebi, Synaptic. W systemie Debian istnieje kilka wygodnych programów do zarządzania zainstalowanymi pakietami. Najczęściej używane z nich to aptitude, oraz starsze podobne narzędzie dselect. Pakietów deb używają także aplikacje oraz , działające na platformie iPhone. Binarnie pakiet deb to archiwum ar z trzema składnikami (plikami) w kolejności: * mały plik określający wersje formatu pakietu np. „2.0” – debian-binary * plik kontrolny (zależności pakietu, sumy kontrolne, skrypty instalacyjne) – control.tar, zwykle skompresowany gzipem jako control.tar.gz * plik danych (właściwa zawartość pakietu – pliki konfiguracyjne, binarne, biblioteki, dokumentacja) – data.tar, zwykle skompresowany gzipem jako data.tar.gz. Stosuje się też czasami silnie kompresujące formaty jak bzip2 lub lzma czy xz w celu oszczędzenia miejsca. Pliki control.tar oraz data.tar mogą być w archiwum bez kompresji – rzadko stosowany zabieg, ale przydatny dla danych słabo kompresowalnych (np. pliki graficzne jpg, mapy do gier).

Abstract from DBpedia / Wikipedia · CC BY-SA