Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 dpkg

查看 dpkg 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install dpkg

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install dpkg

MacPorts ports tree · sysutils/dpkg/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add dpkg

Alpine Linux edge package indexes · dpkg · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install dpkg

Debian stable package indexes · dpkg · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install dpkg

Fedora Rawhide package metadata · dpkg · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#dpkg

nixpkgs package indexes · pkgs/by-name/dp/dpkg/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S dpkg

Arch Linux sync databases · dpkg · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install dpkg

openSUSE Tumbleweed package metadata · dpkg · 来源: download.opensuse.org

概览

软件包摘要

Debian package management system

命令和别名

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

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

来源

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 6 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Linux
/etc/dpkg/dpkg.cfg.d/[0-9a-zA-Z_-]*/etc/dpkg/dpkg.cfg~/.dpkg.cfg

可执行文件

已安装的可执行文件

命令类型暴露范围备注
dpkgcli全局可执行文件
dpkg-architecturecli全局可执行文件
dpkg-buildapicli全局可执行文件
dpkg-buildflagscli全局可执行文件
dpkg-buildpackagecli全局可执行文件
dpkg-buildtreecli全局可执行文件
dpkg-checkbuilddepscli全局可执行文件
dpkg-debcli全局可执行文件
dpkg-distaddfilecli全局可执行文件
dpkg-divertcli全局可执行文件
dpkg-genbuildinfocli全局可执行文件
dpkg-genchangescli全局可执行文件
dpkg-gencontrolcli全局可执行文件
dpkg-gensymbolscli全局可执行文件
dpkg-maintscript-helpercli全局可执行文件
dpkg-mergechangelogscli全局可执行文件
dpkg-namecli全局可执行文件
dpkg-parsechangelogcli全局可执行文件
dpkg-querycli全局可执行文件
dpkg-realpathcli全局可执行文件
dpkg-scanpackagescli全局可执行文件
dpkg-scansourcescli全局可执行文件
dpkg-shlibdepscli全局可执行文件
dpkg-sourcecli全局可执行文件
dpkg-splitcli全局可执行文件
dpkg-statoverridecli全局可执行文件
dpkg-triggercli全局可执行文件
dpkg-vendorcli全局可执行文件
update-alternativescli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.23.7
管理器更新时间2026-06-22
本地数据OK
上游not checked
检测到的最新版本未检测到

https://wiki.debian.org/Teams/Dpkg

安装元数据

软件包元数据

软件包键brew:dpkg
版本1.23.7
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/dpkg
主页https://wiki.debian.org/Teams/Dpkg
仓库https://git.dpkg.org/git/dpkg/dpkg.git
上游文档https://wiki.debian.org/Teams/Dpkg
许可证GPL-2.0-or-later
源码归档https://deb.debian.org/debian/pool/main/d/dpkg/dpkg_1.23.7.tar.xz
最后更新2026-06-22T14:03:11-07:00
Pulseupdated
依赖gettext, gnu-tar, gpatch, libmd, perl, xz
构建依赖pkgconf, po4a
macOS 提供的库bzip2
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项This installation of dpkg is not configured to install software, so commands such as `dpkg -i`, `dpkg --configure` will fail.

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namedpkg
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

dpkg 1.22.22

Debian package management system

https://wiki.debian.org/Teams/Dpkg

sudo apt install dpkg
  • Section: admin
  • Architecture: amd64
  • 1 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Dpkg
Debian stable package indexes · deb.debian.org · Debian stable package indexes: dpkg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

dpkg-dev 1.22.22

Debian package development tools

https://wiki.debian.org/Teams/Dpkg

sudo apt install dpkg-dev
  • Section: utils
  • Architecture: all
  • Source Package: dpkg
  • 8 依赖
  • 1 提供
  • 20 可选依赖
  • normalized package name match
  • 匹配方式:Dpkg
Debian stable package indexes · deb.debian.org · Debian stable package indexes: dpkg-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

dselect 1.22.22

Debian package management front-end

https://wiki.debian.org/Teams/Dpkg

sudo apt install dselect
  • Section: admin
  • Architecture: amd64
  • Source Package: dpkg
  • 4 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Dpkg
Debian stable package indexes · deb.debian.org · Debian stable package indexes: dselect from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libdpkg-dev 1.22.22

Debian package management static library

https://wiki.debian.org/Teams/Dpkg

sudo apt install libdpkg-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: dpkg
  • 5 依赖
  • normalized package name match
  • 匹配方式:Dpkg
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libdpkg-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libdpkg-perl 1.22.22

Dpkg perl modules

https://wiki.debian.org/Teams/Dpkg

sudo apt install libdpkg-perl
  • Section: perl
  • Architecture: all
  • Source Package: dpkg
  • 2 依赖
  • 26 可选依赖
  • normalized package name match
  • 匹配方式:Dpkg
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libdpkg-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

dpkg

nix profile install nixpkgs#dpkg
  • normalized package name match
  • 匹配方式:Dpkg
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/dp/dpkg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

dpkg 1.22.6ubuntu6

Debian package management system

https://wiki.debian.org/Teams/Dpkg

sudo apt install dpkg
  • Section: admin
  • Architecture: amd64
  • 1 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Dpkg
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: dpkg from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

dpkg-dev 1.22.6ubuntu6

Debian package development tools

https://wiki.debian.org/Teams/Dpkg

sudo apt install dpkg-dev
  • Section: utils
  • Architecture: all
  • Source Package: dpkg
  • 9 依赖
  • 1 提供
  • 12 可选依赖
  • normalized package name match
  • 匹配方式:Dpkg
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: dpkg-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

dselect 1.22.6ubuntu6

Debian package management front-end

https://wiki.debian.org/Teams/Dpkg

sudo apt install dselect
  • Section: admin
  • Architecture: amd64
  • Source Package: dpkg
  • 3 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Dpkg
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: dselect from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libdpkg-dev 1.22.6ubuntu6

Debian package management static library

https://wiki.debian.org/Teams/Dpkg

sudo apt install libdpkg-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: dpkg
  • 5 依赖
  • normalized package name match
  • 匹配方式:Dpkg
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libdpkg-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libdpkg-perl 1.22.6ubuntu6

Dpkg perl modules

https://wiki.debian.org/Teams/Dpkg

sudo apt install libdpkg-perl
  • Section: perl
  • Architecture: all
  • Source Package: dpkg
  • 2 依赖
  • 18 可选依赖
  • normalized package name match
  • 匹配方式:Dpkg
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libdpkg-perl from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

dpkg 1.23.7-r0

Debian Package Manager

https://wiki.debian.org/Teams/Dpkg

sudo apk add dpkg
  • License: GPL-2.0-or-later AND BSD-2-Clause
  • Architecture: x86_64
  • Source Package: dpkg
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dpkg
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dpkg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

dpkg-dev 1.23.7-r0

Debian package development tools

https://wiki.debian.org/Teams/Dpkg

sudo apk add dpkg-dev
  • License: GPL-2.0-or-later AND BSD-2-Clause
  • Architecture: x86_64
  • Source Package: dpkg
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dpkg
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dpkg-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

dpkg-doc 1.23.7-r0

Debian Package Manager (documentation)

https://wiki.debian.org/Teams/Dpkg

sudo apk add dpkg-doc
  • License: GPL-2.0-or-later AND BSD-2-Clause
  • Architecture: x86_64
  • Source Package: dpkg
  • normalized package name match
  • 匹配方式:Dpkg
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dpkg-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

dpkg-zsh-completion 1.23.7-r0

Zsh completions for dpkg

https://wiki.debian.org/Teams/Dpkg

sudo apk add dpkg-zsh-completion
  • License: GPL-2.0-or-later AND BSD-2-Clause
  • Architecture: x86_64
  • Source Package: dpkg
  • normalized package name match
  • 匹配方式:Dpkg
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dpkg-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

dpkg 1.23.7-1.fc45

Package maintenance system for Debian Linux

https://tracker.debian.org/pkg/dpkg

sudo dnf install dpkg
  • License: GPL-2.0-only AND GPL-2.0-or-later AND FSFAP AND FSFULLR
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: dpkg
  • 11 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Dpkg
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: dpkg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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