Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, Nix, pacman 安装 apt

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install apt

local Homebrew formula metadata

Linux

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

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

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

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

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

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

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

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

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

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

概览

软件包摘要

Advanced Package Tool

命令和别名

  • apt
  • apt-cache
  • apt-cdrom
  • apt-config
  • apt-ftparchive
  • apt-get
  • apt-mark
  • apt-sortpkgs

历史

项目历史与用法

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.

时间线

  • 1995: Debian 0.93R5 uses dpkg after base-system installation.
  • 1999: Debian 2.1 Slink introduces apt as a new package-management interface.
  • 2000s: apt-get becomes the standard command-line front end for scripted Debian package operations.
  • 2010s: apt becomes the recommended interactive front end while apt-get remains the stable scripting interface.

Related projects

  • dpkg is the lower-level Debian package installer and database underneath APT.
  • aptitude, Synaptic, wajig, and other front ends build around APT or the Debian package model.
  • aptly and apt-dater are downstream tools in this batch that manage repositories or remote updates for apt-based systems.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:ftp,archive

安装行为

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

建议审查

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

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.

Unix
/etc/apt/apt.conf/etc/apt/apt.conf.d//etc/apt/sources.list/etc/apt/sources.list.d/

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
/etc/apt/auth.conf/etc/apt/auth.conf.d/*.conf

可执行文件

已安装的可执行文件

命令类型暴露范围备注
aptcli全局可执行文件
apt-cachecli全局可执行文件
apt-cdromcli全局可执行文件
apt-configcli全局可执行文件
apt-ftparchivecli全局可执行文件
apt-getcli全局可执行文件
apt-markcli全局可执行文件
apt-sortpkgscli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://wiki.debian.org/Apt

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖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 DatabaseHomebrew formula API
Taphomebrew/core
Full Nameapt
Version Scheme0
Revision0
Requirements
  • linux
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

apt 3.0.3

commandline package manager

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

apt-doc 3.0.3

documentation for APT

sudo apt install apt-doc
  • Section: doc
  • Architecture: all
  • Source Package: apt
  • normalized package name match
  • 匹配方式:Apt
Debian stable package indexes · deb.debian.org · Debian stable package indexes: apt-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

apt-transport-https 3.0.3

transitional package for https support

sudo apt install apt-transport-https
  • Section: oldlibs
  • Architecture: all
  • Source Package: apt
  • 1 依赖
  • normalized package name match
  • 匹配方式:Apt
Debian stable package indexes · deb.debian.org · Debian stable package indexes: apt-transport-https from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

apt-utils 3.0.3

package management related utility programs

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

libapt-pkg-dev 3.0.3

development files for APT's libapt-pkg and libapt-inst

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

libapt-pkg-doc 3.0.3

documentation for APT development

sudo apt install libapt-pkg-doc
  • Section: doc
  • Architecture: all
  • Source Package: apt
  • normalized package name match
  • 匹配方式:Apt
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libapt-pkg-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libapt-pkg7.0 3.0.3

package management runtime library

sudo apt install libapt-pkg7.0
  • Section: libs
  • Architecture: amd64
  • Source Package: apt
  • 12 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Apt
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libapt-pkg7.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

apt

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

apt 2.7.14build2

commandline package manager

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

apt-doc 2.7.14build2

documentation for APT

sudo apt install apt-doc
  • Section: doc
  • Architecture: all
  • Source Package: apt
  • normalized package name match
  • 匹配方式:Apt
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: apt-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

apt-transport-https 2.7.14build2

transitional package for https support

sudo apt install apt-transport-https
  • Section: universe/admin
  • Architecture: all
  • Source Package: apt
  • 1 依赖
  • normalized package name match
  • 匹配方式:Apt
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: apt-transport-https from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

apt-utils 2.7.14build2

package management related utility programs

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

libapt-pkg-dev 2.7.14build2

development files for APT's libapt-pkg and libapt-inst

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

libapt-pkg-doc 2.7.14build2

documentation for APT development

sudo apt install libapt-pkg-doc
  • Section: doc
  • Architecture: all
  • Source Package: apt
  • normalized package name match
  • 匹配方式:Apt
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libapt-pkg-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libapt-pkg6.0t64 2.7.14build2

package management runtime library

sudo apt install libapt-pkg6.0t64
  • Section: libs
  • Architecture: amd64
  • Source Package: apt
  • 12 依赖
  • 2 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Apt
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libapt-pkg6.0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

apt 3.2.0-r0

APT package management tool

https://salsa.debian.org/apt-team/apt

sudo apk add apt
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: apt
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Apt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: apt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 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