FILE FORMAT GUIDE

DEB File: Inspect Package Details Before Installing

A DEB file is a Debian binary software package. Use Debian package tools to read its metadata and list its files before deciding whether to install it on a compatible system.

Quick facts

Extension
.deb
Format
Debian Binary Package
Category
archive
MIME type
application/vnd.debian.binary-package
Standard / developer
Debian
Open with
dpkg-deb

What is DEB?

The documented DEB 2.0 structure is an ar archive with a debian-binary version member, a control archive and a data archive. Control data describes the package; the data archive contains its filesystem payload. Listing those files does not install the package.

How to open DEB

Package inspection and installation are different tasks. This guide starts with reading metadata.

dpkg-debDebian systems with dpkg tools

Run dpkg-deb --info ./package.deb to read control information, then dpkg-deb --contents ./package.deb to list the filesystem payload. These are inspection commands.

Common uses and compatibility

  • Distribute a binary package with control metadata and a filesystem payload.
  • Inspect package information and entry names with dpkg-deb.

Things to check

  • Extracting package contents is not equivalent to a correct system installation.
  • dpkg does not resolve missing dependencies in the way higher-level tools such as apt can.

Technical details

Signature
Outer ar archive starts with !<arch> followed by a newline; this is an ar signature, not a DEB-only identifier
Encoding
Unknown
Container
ar archive containing debian-binary, control.tar and data.tar members (inner archives may have compression suffixes)
Compression
Control and data tar members may be uncompressed or use supported codecs; support depends on the package-tool version

Debian binary package format — deb(5)

How to inspect a DEB without installing it

On a system with dpkg-deb, replace package.deb below with the path to your file. These information commands do not request installation.

Read package metadata

dpkg-deb --info ./package.deb

List packaged files

dpkg-deb --contents ./package.deb

Sources: Debian dpkg-deb(1): inspect and extract package archives

What is inside a DEB?

The outer ar archive groups three required members in order. The inner archives may use supported compression methods; .deb alone does not mean gzip is used.

MemberRole
debian-binaryPackage format version
control.tar with an optional compression suffixControl metadata and optional maintainer scripts
data.tar with an optional compression suffixFilesystem payload

Sources: Debian deb(5): binary package format

Why is extracting different from installing?

dpkg-deb --extract writes the payload to a chosen directory but does not perform the package-management installation process. Do not extract directly over a system root to install software. If your goal is installation, use the supported package manager and a trusted package source for your distribution.

Sources: Debian dpkg-deb(1): inspect and extract package archives · Debian Administrator’s Handbook: manipulating packages with dpkg

Why will the package not install?

Read the reported dependency and compatibility errors before changing anything. A package filename or successful contents listing does not establish that it matches your system. The Debian handbook distinguishes dpkg’s local package operations from apt’s broader dependency handling; forcing an installation can leave problems unresolved.

Sources: Debian Administrator’s Handbook: manipulating packages with dpkg

Can I rename DEB to ZIP or EXE?

A new suffix does not change the ar members, metadata or target software. Use package-aware tools to inspect the DEB; obtain a publisher-supported build for a different operating system rather than renaming this package.

Sources: Debian deb(5): binary package format · Debian Administrator’s Handbook: manipulating packages with dpkg

Related formats

Sources & review

Sources reviewed 2026-11-06.