macOS
brew install aptlocal Homebrew formula metadata
安装
brew install aptlocal Homebrew formula metadata
sudo apk add aptAlpine Linux edge package indexes · apt · 来源: dl-cdn.alpinelinux.org
sudo dnf install aptFedora Rawhide package metadata · apt · 来源: dl.fedoraproject.org
nix profile install nixpkgs#aptnixpkgs package indexes · pkgs/by-name/ap/apt/package.nix · 来源: api.github.com
sudo pacman -S aptArch Linux sync databases · apt · 来源: geo.mirror.pkgbuild.com
概览
Advanced Package Tool
历史
APT, the Advanced Package Tool, is Debian's high-level package acquisition, dependency resolution, and installation interface. It turned dpkg-based systems from local package installers into repository-driven operating systems.
Debian's early package management centered on dpkg and dselect. The official Debian project history names Debian 2.1 Slink, released March 9, 1999, as the release that introduced apt as a new package-management interface and describes it as a key technical innovation.
APT grew into a family of tools and libraries. The Debian Administrator's Handbook describes apt-get as the first command-line front end developed within the APT project, with apt later added as a more interactive command-line front end while apt-get retained a stable scripted interface.
The system's configuration model also became part of Debian culture: /etc/apt/sources.list and sources.list.d define repositories, apt.conf and apt.conf.d define behavior, preferences files define pinning, and auth.conf carries machine credentials for authenticated repositories.
APT's adoption tracks Debian's growth. Debian's own history says apt addressed issues from Debian's continuing expansion and established a new paradigm for package acquisition and installation on open source operating systems.
Ubuntu inherited APT as a core system interface, and the supplied metadata records apt packages or compatibility packages across Homebrew, Debian, Ubuntu, Fedora/dnf, Arch/pacman, Alpine/apk, and Nix. Some non-Debian entries exist for compatibility or tooling rather than as the native system package manager.
APT also shaped the UX expectations for later package managers: update an index, install by name, resolve dependencies, upgrade the system, pin repositories, and use signed repository metadata.
The everyday flow is apt update to refresh package indexes, apt install package to install dependencies and packages, apt remove or apt purge to remove software, and apt upgrade or apt full-upgrade for system updates.
Scripts and maintainer tooling often use apt-get because Debian documents its public interface as stable for automation. Humans often use apt because it has interactive defaults and output tuned for direct terminal use.
Repository configuration is text-file driven: sources.list controls where packages come from, apt.conf controls acquisition and dpkg behavior, and auth.conf stores credentials for authenticated archive access.
APT is one of the defining package-manager designs. It made repository metadata, dependency solving, local package archives, upgrade planning, and signed distribution channels normal parts of Linux administration.
For package nerds, APT is also the origin point for countless secondary tools: mirror managers, repository publishers, pinning front ends, unattended-upgrade systems, PPA tooling, and fleet update wrappers. Understanding APT explains a large fraction of Debian and Ubuntu packaging behavior.
Its split between dpkg as the local package database/installer and APT as the repository-aware resolver remains one of the clearest examples of layered package-management architecture.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
/etc/apt/apt.conf/etc/apt/apt.conf.d//etc/apt/sources.list/etc/apt/sources.list.d/Credential-bearing paths to review before unattended agent runs.
/etc/apt/auth.conf/etc/apt/auth.conf.d/*.conf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
apt | cli | 全局可执行文件 | |
apt-cache | cli | 全局可执行文件 | |
apt-cdrom | cli | 全局可执行文件 | |
apt-config | cli | 全局可执行文件 | |
apt-ftparchive | cli | 全局可执行文件 | |
apt-get | cli | 全局可执行文件 | |
apt-mark | cli | 全局可执行文件 | |
apt-sortpkgs | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:apt |
|---|---|
| 版本 | 3.2.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/apt |
| 主页 | https://wiki.debian.org/Apt |
| 仓库 | https://salsa.debian.org/apt-team/apt |
| 上游文档 | https://manpages.debian.org/unstable/apt/apt.8.en.html |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://salsa.debian.org/apt-team/apt/-/archive/3.2.0/apt-3.2.0.tar.bz2 |
| 最后更新 | 2026-06-25T13:37:36+02:00 |
| Pulse | updated |
| 依赖 | berkeley-db@5, bzip2, dpkg, lz4, openssl@3, perl, sequoia-sqv, systemd, xxhash, xz, zlib-ng-compat, zstd |
| 构建依赖 | cmake, docbook, docbook-xsl, doxygen, gettext, libxslt, po4a, w3m |
| Bottle | 可用 (于 arm64_linux, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | apt |
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
apt 3.0.3
commandline package manager
sudo apt install aptapt-doc 3.0.3
documentation for APT
sudo apt install apt-docapt-transport-https 3.0.3
transitional package for https support
sudo apt install apt-transport-httpsapt-utils 3.0.3
package management related utility programs
sudo apt install apt-utilslibapt-pkg-dev 3.0.3
development files for APT's libapt-pkg and libapt-inst
sudo apt install libapt-pkg-devlibapt-pkg-doc 3.0.3
documentation for APT development
sudo apt install libapt-pkg-doclibapt-pkg7.0 3.0.3
package management runtime library
sudo apt install libapt-pkg7.0apt
nix profile install nixpkgs#aptapt 2.7.14build2
commandline package manager
sudo apt install aptapt-doc 2.7.14build2
documentation for APT
sudo apt install apt-docapt-transport-https 2.7.14build2
transitional package for https support
sudo apt install apt-transport-httpsapt-utils 2.7.14build2
package management related utility programs
sudo apt install apt-utilslibapt-pkg-dev 2.7.14build2
development files for APT's libapt-pkg and libapt-inst
sudo apt install libapt-pkg-devlibapt-pkg-doc 2.7.14build2
documentation for APT development
sudo apt install libapt-pkg-doclibapt-pkg6.0t64 2.7.14build2
package management runtime library
sudo apt install libapt-pkg6.0t64apt 3.2.0-r0
APT package management tool
https://salsa.debian.org/apt-team/apt
sudo apk add apt来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.