# Install apt with Homebrew, apk, apt, dnf, Nix, pacman

Advanced Package Tool. Version 3.2.0 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:apt
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install apt
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add apt
```

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

- Debian apt (92%):

```sh
sudo apt install apt
```

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

- dnf (92%):

```sh
sudo dnf install apt
```

  Evidence: Fedora Rawhide package metadata: apt 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#apt
```

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

- pacman (92%):

```sh
sudo pacman -S apt
```

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

## Package facts

- **Package key:** brew:apt
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/apt>
- **Version:** 3.2.0
- **Source summary:** Advanced Package Tool
- **Homepage:** <https://wiki.debian.org/Apt>
- **Repository:** <https://salsa.debian.org/apt-team/apt>
- **Upstream docs:** <https://manpages.debian.org/unstable/apt/apt.8.en.html>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://salsa.debian.org/apt-team/apt/-/archive/3.2.0/apt-3.2.0.tar.bz2>
- **Last updated:** 2026-06-25T13:37:36+02:00
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- apt (cli)
- apt-cache (cli)
- apt-cdrom (cli)
- apt-config (cli)
- apt-ftparchive (cli)
- apt-get (cli)
- apt-mark (cli)
- apt-sortpkgs (cli)
- apt (alias)
- apt-cache (alias)
- apt-cdrom (alias)
- apt-config (alias)
- apt-ftparchive (alias)
- apt-get (alias)
- apt-mark (alias)
- apt-sortpkgs (alias)

## Dependencies

- berkeley-db@5
- bzip2
- dpkg
- lz4
- openssl@3
- perl
- sequoia-sqv
- systemd
- xxhash
- xz
- zlib-ng-compat
- zstd

## Build dependencies

- cmake
- docbook
- docbook-xsl
- doxygen
- gettext
- libxslt
- po4a
- w3m

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, x86_64_linux

## Freshness

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

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

- <https://manpages.debian.org/unstable/apt/apt.conf.5.en.html>
- <https://manpages.debian.org/unstable/apt/apt_auth.conf.5.en.html>
- <https://manpages.debian.org/unstable/apt/sources.list.5.en.html>
- <https://www.debian.org/doc/manuals/apt-guide/index.en.html>
- <https://www.debian.org/doc/manuals/debian-handbook/sect.apt-get.en.html>
- <https://www.debian.org/doc/manuals/project-history/releases.en.html>
- source_facts.package-manager


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## 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

- Unix: /etc/apt/apt.conf, /etc/apt/apt.conf.d/, /etc/apt/sources.list, /etc/apt/sources.list.d/

## Credential files

- Unix: /etc/apt/auth.conf, /etc/apt/auth.conf.d/*.conf
## Source Database Details

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

## Other Package-Manager Records

- Debian apt - apt - 3.0.3: normalized package name match | Debian stable package indexes: apt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | commandline package manager
- Debian apt - apt-doc - 3.0.3: normalized package name match | Debian stable package indexes: apt-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | documentation for APT
- Debian apt - apt-transport-https - 3.0.3: normalized package name match | Debian stable package indexes: apt-transport-https from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package for https support
- Debian apt - apt-utils - 3.0.3: normalized package name match | Debian stable package indexes: apt-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | package management related utility programs
- Debian apt - libapt-pkg-dev - 3.0.3: normalized package name match | Debian stable package indexes: libapt-pkg-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for APT's libapt-pkg and libapt-inst
- Debian apt - libapt-pkg-doc - 3.0.3: normalized package name match | Debian stable package indexes: libapt-pkg-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | documentation for APT development
- Debian apt - libapt-pkg7.0 - 3.0.3: normalized package name match | Debian stable package indexes: libapt-pkg7.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | package management runtime library
- Nix - apt: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/apt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - apt - 2.7.14build2: normalized package name match | Ubuntu 24.04 LTS package indexes: apt from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | commandline package manager
- Ubuntu apt - apt-doc - 2.7.14build2: normalized package name match | Ubuntu 24.04 LTS package indexes: apt-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | documentation for APT
- Ubuntu apt - apt-transport-https - 2.7.14build2: normalized package name match | Ubuntu 24.04 LTS package indexes: apt-transport-https from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | transitional package for https support
- Ubuntu apt - apt-utils - 2.7.14build2: normalized package name match | Ubuntu 24.04 LTS package indexes: apt-utils from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | package management related utility programs
- Ubuntu apt - libapt-pkg-dev - 2.7.14build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libapt-pkg-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | development files for APT's libapt-pkg and libapt-inst
- Ubuntu apt - libapt-pkg-doc - 2.7.14build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libapt-pkg-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | documentation for APT development
- Ubuntu apt - libapt-pkg6.0t64 - 2.7.14build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libapt-pkg6.0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | package management runtime library
- apk - apt - 3.2.0-r0: normalized package name match | Alpine Linux edge package indexes: apt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | APT package management tool | https://salsa.debian.org/apt-team/apt


## Related links

- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [bzip2](https://www.automicvault.com/pkg/brew/bzip2/) - Runtime dependency declared by Homebrew.
- [dpkg](https://www.automicvault.com/pkg/brew/dpkg/) - Runtime dependency declared by Homebrew.
- [lz4](https://www.automicvault.com/pkg/brew/lz4/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [perl](https://www.automicvault.com/pkg/brew/perl/) - Runtime dependency declared by Homebrew.
- [sequoia-sqv](https://www.automicvault.com/pkg/brew/sequoia-sqv/) - Runtime dependency declared by Homebrew.
- [systemd](https://www.automicvault.com/pkg/brew/systemd/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [docbook](https://www.automicvault.com/pkg/brew/docbook/) - Build dependency declared by Homebrew.
- [docbook-xsl](https://www.automicvault.com/pkg/brew/docbook-xsl/) - Build dependency declared by Homebrew.
- [doxygen](https://www.automicvault.com/pkg/brew/doxygen/) - Build dependency declared by Homebrew.
- [debianutils](https://www.automicvault.com/pkg/brew/debianutils/) - Shares av.db curated category or tags: cli, debian, system.
- [meta-package-manager](https://www.automicvault.com/pkg/brew/meta-package-manager/) - Shares av.db curated category or tags: cli, package-manager, system.
- [pacapt](https://www.automicvault.com/pkg/brew/pacapt/) - Shares av.db curated category or tags: cli, package-manager, system.
- [posh](https://www.automicvault.com/pkg/brew/posh/) - Shares av.db curated category or tags: cli, debian, system.
- [abduco](https://www.automicvault.com/pkg/brew/abduco/) - Shares av.db curated category or tags: cli, system.
- [acl](https://www.automicvault.com/pkg/brew/acl/) - Shares av.db curated category or tags: cli, system.
- [acpica](https://www.automicvault.com/pkg/brew/acpica/) - Shares av.db curated category or tags: cli, system.
- [kmod](https://www.automicvault.com/pkg/brew/kmod/) - Local package facts share a topical domain. Shared terms: cli, compat, openssl, openssl-3, system.

## Combined YAML source

View the package source record on GitHub. [combined/apt.yml](https://github.com/automic-vault/db/blob/main/combined/apt.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
