# Install dpkg with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Debian package management system. Version 1.23.7 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:dpkg
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dpkg
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dpkg
```

  Evidence: MacPorts ports tree: sysutils/dpkg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dpkg
```

  Evidence: Alpine Linux edge package indexes: dpkg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install dpkg
```

  Evidence: Debian stable package indexes: dpkg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install dpkg
```

  Evidence: Fedora Rawhide package metadata: dpkg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#dpkg
```

  Evidence: nixpkgs package indexes: pkgs/by-name/dp/dpkg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S dpkg
```

  Evidence: Arch Linux sync databases: dpkg from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install dpkg
```

  Evidence: openSUSE Tumbleweed package metadata: dpkg from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:dpkg
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dpkg>
- **Version:** 1.23.7
- **Source summary:** Debian package management system
- **Homepage:** <https://wiki.debian.org/Teams/Dpkg>
- **Repository:** <https://git.dpkg.org/git/dpkg/dpkg.git>
- **Upstream docs:** <https://wiki.debian.org/Teams/Dpkg>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://deb.debian.org/debian/pool/main/d/dpkg/dpkg_1.23.7.tar.xz>
- **Last updated:** 2026-06-22T14:03:11-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dpkg (cli)
- dpkg-architecture (cli)
- dpkg-buildapi (cli)
- dpkg-buildflags (cli)
- dpkg-buildpackage (cli)
- dpkg-buildtree (cli)
- dpkg-checkbuilddeps (cli)
- dpkg-deb (cli)
- dpkg-distaddfile (cli)
- dpkg-divert (cli)
- dpkg-genbuildinfo (cli)
- dpkg-genchanges (cli)
- dpkg-gencontrol (cli)
- dpkg-gensymbols (cli)
- dpkg-maintscript-helper (cli)
- dpkg-mergechangelogs (cli)
- dpkg-name (cli)
- dpkg-parsechangelog (cli)
- dpkg-query (cli)
- dpkg-realpath (cli)
- dpkg-scanpackages (cli)
- dpkg-scansources (cli)
- dpkg-shlibdeps (cli)
- dpkg-source (cli)
- dpkg-split (cli)
- dpkg-statoverride (cli)
- dpkg-trigger (cli)
- dpkg-vendor (cli)
- update-alternatives (cli)
- dpkg (alias)
- dpkg-architecture (alias)
- dpkg-buildapi (alias)
- dpkg-buildflags (alias)
- dpkg-buildpackage (alias)
- dpkg-buildtree (alias)
- dpkg-checkbuilddeps (alias)
- dpkg-deb (alias)
- dpkg-distaddfile (alias)
- dpkg-divert (alias)
- dpkg-genbuildinfo (alias)
- dpkg-genchanges (alias)
- dpkg-gencontrol (alias)
- dpkg-gensymbols (alias)
- dpkg-maintscript-helper (alias)
- dpkg-mergechangelogs (alias)
- dpkg-name (alias)
- dpkg-parsechangelog (alias)
- dpkg-query (alias)
- dpkg-realpath (alias)
- dpkg-scanpackages (alias)
- dpkg-scansources (alias)
- dpkg-shlibdeps (alias)
- dpkg-source (alias)
- dpkg-split (alias)
- dpkg-statoverride (alias)
- dpkg-trigger (alias)
- dpkg-vendor (alias)
- update-alternatives (alias)

## Dependencies

- gettext
- gnu-tar
- gpatch
- libmd
- perl
- xz

## Build dependencies

- pkgconf
- po4a

## Uses from macOS

- bzip2

## Install behavior

- Post-install hook: not defined
- Caveats: This installation of dpkg is not configured to install software, so commands such as `dpkg -i`, `dpkg --configure` will fail.
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.23.7
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://wiki.debian.org/Teams/Dpkg
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

dpkg is Debian's low-level package management system: the command suite and file formats beneath apt and Debian-family package installation. It owns core operations such as unpacking, configuring, querying, building, and inspecting .deb packages.

### Project history

dpkg belongs to Debian's earliest packaging culture. Debian's official project history says Debian was founded by Ian Murdock on 16 August 1993, at a time when the idea of a Linux distribution was still new, and that Debian became micro packaged with detailed dependency information to keep systems consistent across upgrades.

The dpkg team page describes the team as responsible for dpkg and related tools used for low-level source and binary package management. The dpkg homepage identifies the project as the Debian Package Manager and points to released tarballs, historic tarballs, the git repository, specifications, API documentation, bug tracking, mailing lists, and downstream distributions.

The dpkg project's own history file records several source-control eras: CVS for dpkg 1.4.1 through 1.10.24, Arch maintenance beginning in December 2004, Subversion from January 2006 through July 2007, and Git beginning 25 July 2007. That VCS trail is part of dpkg's institutional history because it preserves the tool that preserves Debian systems.

### Adoption history

dpkg's direct adoption follows Debian and its derivatives. The official Debian history describes Debian as a large volunteer distribution, and the dpkg homepage points to downstream distributions and distribution-provided packages as the normal way to obtain current dpkg releases.

In everyday use, many users interact with apt, aptitude, or graphical package managers first, but dpkg remains the local authority for .deb package installation state, package database operations, maintainer-script execution, and low-level package queries. Its command suite appears on Debian, Ubuntu, and other systems that need .deb tooling, and it is also packaged by non-Debian systems for compatibility and build workflows.

### How it is used

The dpkg manpage describes dpkg as the Debian package manager. It installs, removes, and inspects packages, maintains information about available and installed packages, and can act as a frontend to dpkg-deb and dpkg-query for supported actions.

The wider dpkg package includes developer-facing commands such as dpkg-buildpackage, dpkg-source, dpkg-shlibdeps, dpkg-gensymbols, dpkg-architecture, dpkg-buildflags, and dpkg-parsechangelog, which makes it both a system package manager component and a build-tool suite for Debian packaging.

### Why package nerds care

dpkg is one of the canonical package-nerd tools because it embodies the .deb model: control files, package states, maintainer scripts, conffiles, triggers, diversions, alternatives, source packages, build metadata, and dependency-aware system upgrades. For Debian-family systems, apt is the friendly planner, but dpkg is the local executor and database.

Its significance is also cultural. Debian's policy-heavy, source-package-oriented packaging ecosystem depends on dpkg behavior and companion tools. Changes to dpkg ripple into bootstrapping, cross-building, reproducible builds, multiarch behavior, maintainer scripts, and downstream distributions.

### Timeline

- 1993: Debian Project officially founded by Ian Murdock.
- 2004: dpkg history file records the end of CVS-only maintenance around dpkg 1.10.24 and the move toward Arch.
- 2006: dpkg history file records Subversion maintenance beginning on 18 January 2006.
- 2007: dpkg history file records Git maintenance beginning on 25 July 2007.
- 2025: Debian Wiki records the Dpkg team page as last modified in August 2025, listing current infrastructure, documentation, and project areas.

### Related projects

- dpkg is closely related to apt and other package-manager frontends, dpkg-deb, dpkg-query, dpkg-dev, debhelper, Debian Policy, Debian source packages, and Debian derivatives such as Ubuntu. The dpkg team page also names dpkg-repack, dpkg-www, debsig-verify, dupload, and dlocate as related maintained projects.

### Sources

- <https://www.dpkg.org/ - official dpkg homepage for project identity, downloads, source repositories, docs, specs, and downstream references.>
- <https://wiki.debian.org/Teams/Dpkg - official Debian Wiki team page for role, source repository, related tools, docs, and project infrastructure.>
- <https://www.dpkg.org/history/dpkg-history.txt - official dpkg history note for CVS, Arch, Subversion, and Git maintenance eras.>
- <https://www.debian.org/doc/manuals/project-history/intro.en.html - official Debian project history for Debian's founding and packaging culture.>
- <https://www.debian.org/doc/manuals/project-history/manifesto.en.html - official Debian Manifesto text and date.>
- <https://manpages.debian.org/bookworm/dpkg/dpkg.1.en.html - official Debian manpage for dpkg behavior and related tools.>
- <https://manpages.debian.org/bookworm/dpkg/dpkg.cfg.5.en.html - official Debian manpage for dpkg configuration files.>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: /etc/dpkg/dpkg.cfg.d/[0-9a-zA-Z_-]*, /etc/dpkg/dpkg.cfg, ~/.dpkg.cfg
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dpkg
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - dpkg - 1.22.22: normalized package name match | Debian stable package indexes: dpkg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Debian package management system | https://wiki.debian.org/Teams/Dpkg
- Debian apt - dpkg-dev - 1.22.22: normalized package name match | Debian stable package indexes: dpkg-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Debian package development tools | https://wiki.debian.org/Teams/Dpkg
- Debian apt - dselect - 1.22.22: normalized package name match | Debian stable package indexes: dselect from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Debian package management front-end | https://wiki.debian.org/Teams/Dpkg
- Debian apt - libdpkg-dev - 1.22.22: normalized package name match | Debian stable package indexes: libdpkg-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Debian package management static library | https://wiki.debian.org/Teams/Dpkg
- Debian apt - libdpkg-perl - 1.22.22: normalized package name match | Debian stable package indexes: libdpkg-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Dpkg perl modules | https://wiki.debian.org/Teams/Dpkg
- Nix - dpkg: normalized package name match | nixpkgs package indexes: pkgs/by-name/dp/dpkg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dpkg - 1.22.6ubuntu6: normalized package name match | Ubuntu 24.04 LTS package indexes: dpkg from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Debian package management system | https://wiki.debian.org/Teams/Dpkg
- Ubuntu apt - dpkg-dev - 1.22.6ubuntu6: normalized package name match | Ubuntu 24.04 LTS package indexes: dpkg-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Debian package development tools | https://wiki.debian.org/Teams/Dpkg
- Ubuntu apt - dselect - 1.22.6ubuntu6: normalized package name match | Ubuntu 24.04 LTS package indexes: dselect from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Debian package management front-end | https://wiki.debian.org/Teams/Dpkg
- Ubuntu apt - libdpkg-dev - 1.22.6ubuntu6: normalized package name match | Ubuntu 24.04 LTS package indexes: libdpkg-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Debian package management static library | https://wiki.debian.org/Teams/Dpkg
- Ubuntu apt - libdpkg-perl - 1.22.6ubuntu6: normalized package name match | Ubuntu 24.04 LTS package indexes: libdpkg-perl from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Dpkg perl modules | https://wiki.debian.org/Teams/Dpkg
- apk - dpkg - 1.23.7-r0: normalized package name match | Alpine Linux edge package indexes: dpkg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Debian Package Manager | https://wiki.debian.org/Teams/Dpkg
- apk - dpkg-dev - 1.23.7-r0: normalized package name match | Alpine Linux edge package indexes: dpkg-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Debian package development tools | https://wiki.debian.org/Teams/Dpkg
- apk - dpkg-doc - 1.23.7-r0: normalized package name match | Alpine Linux edge package indexes: dpkg-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Debian Package Manager (documentation) | https://wiki.debian.org/Teams/Dpkg
- apk - dpkg-zsh-completion - 1.23.7-r0: normalized package name match | Alpine Linux edge package indexes: dpkg-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zsh completions for dpkg | https://wiki.debian.org/Teams/Dpkg
- dnf - dpkg - 1.23.7-1.fc45: normalized package name match | Fedora Rawhide package metadata: dpkg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Package maintenance system for Debian Linux | https://tracker.debian.org/pkg/dpkg


## Related links

- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://www.automicvault.com/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [gnu-tar](https://www.automicvault.com/pkg/brew/gnu-tar/) - Runtime dependency declared by Homebrew.
- [gpatch](https://www.automicvault.com/pkg/brew/gpatch/) - Runtime dependency declared by Homebrew.
- [perl](https://www.automicvault.com/pkg/brew/perl/) - Runtime dependency declared by Homebrew.
- [xz](https://www.automicvault.com/pkg/brew/xz/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [po4a](https://www.automicvault.com/pkg/brew/po4a/) - Build dependency declared by Homebrew.
- [apt](https://www.automicvault.com/pkg/brew/apt/) - Popular package that depends on this formula.
- [fnt](https://www.automicvault.com/pkg/brew/fnt/) - Shares av.db curated category or tags: cli, linux, package-management, system.
- [meta-package-manager](https://www.automicvault.com/pkg/brew/meta-package-manager/) - Shares av.db curated category or tags: cli, package-management, package-manager, system.
- [pacapt](https://www.automicvault.com/pkg/brew/pacapt/) - Shares av.db curated category or tags: cli, package-management, package-manager, system.
- [snap](https://www.automicvault.com/pkg/brew/snap/) - Shares av.db curated category or tags: cli, linux, package-management, system.
- [zero-install](https://www.automicvault.com/pkg/brew/zero-install/) - Shares av.db curated category or tags: cli, package-management, system.
- [atop](https://www.automicvault.com/pkg/brew/atop/) - Shares av.db curated category or tags: cli, system.
- [augeas](https://www.automicvault.com/pkg/brew/augeas/) - Shares av.db curated category or tags: cli, system.

## Combined YAML source

View the package source record on GitHub. [combined/dpkg.yml](https://github.com/automic-vault/db/blob/main/combined/dpkg.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
