Unix/Linux Package Management (apt, yum, dnf, brew, pacman)

Package managers across distributions: Debian/Ubuntu (apt), RHEL/Fedora (yum/dnf), macOS (brew), Arch (pacman). Installation, removal, repository management.

  • JSON12,782 B
  • YAML7,757 B · −39%
  • TOON7,443 B · −42%

Package managers by platform with description, common commands, configuration files and notes: apt, yum, dnf, Homebrew, pacman and dpkg.

Use it when

  • You need the install, update or search command for a Linux or macOS package manager.
  • You are writing cross-distribution setup instructions.

Watch out for

  • Command names and defaults differ by distribution and version; yum is replaced by dnf on current Fedora and RHEL.
  • Installing packages needs privileges (sudo) and trust in the repository.

The data

Managers

NamePlatformDescriptionCommon commandsConfig filesNotes
apt (Advanced Package Tool)Debian, Ubuntu, Linux MintHigh-level package manager for Debian-based systems. Handles dependency resolution, repository management, and package installation/removal.
Apt updateApt upgradeApt install <pkg>Apt remove <pkg>Apt purge <pkg>Apt search <term>Apt list installedApt show <pkg>
Update package index from repositoriesnullnullnullnullnullnullnull
nullUpgrade all upgradable packagesnullnullnullnullnullnull
nullnullInstall package and dependenciesnullnullnullnullnull
nullnullnullRemove package, keep config filesnullnullnullnull
nullnullnullnullRemove package and config filesnullnullnull
nullnullnullnullnullSearch package descriptionsnullnull
nullnullnullnullnullnullList all installed packagesnull
nullnullnullnullnullnullnullShow package details
  • /etc/apt/sources.list
  • /etc/apt/sources.list.d/
  • /etc/apt/apt.conf.d/
Use apt-get for scripts (stable output), apt for interactive use. sudo apt update before install/upgrade. apt full-upgrade handles distribution upgrades. .deb files can be installed via dpkg -i but dependencies aren't resolved automatically.
yum (Yellowdog Updater Modified)RHEL, CentOS, Fedora (legacy)Legacy package manager for RHEL-based systems. Being replaced by dnf but still widely used on older systems.
Yum check updateYum updateYum install <pkg>Yum remove <pkg>Yum search <term>Yum info <pkg>Yum list installedYum clean all
Check for available updatesnullnullnullnullnullnullnull
nullUpdate all packagesnullnullnullnullnullnull
nullnullInstall packagenullnullnullnullnull
nullnullnullRemove packagenullnullnullnull
nullnullnullnullSearch packagesnullnullnull
nullnullnullnullnullShow package infonullnull
nullnullnullnullnullnullList installed packagesnull
nullnullnullnullnullnullnullClean package cache
  • /etc/yum.conf
  • /etc/yum.repos.d/
yum is deprecated in favor of dnf (Yum's successor). Still present on CentOS 7, RHEL 7, and older Fedora. Uses RPM packages. Transactions are logged in /var/log/yum.log.
dnf (Dandified Yum)Fedora, RHEL 8+, CentOS Stream, AlmaLinux, Rocky LinuxNext-generation package manager for RPM-based distributions. Faster dependency resolution, cleaner API, better performance than yum.
Dnf check updateDnf updateDnf install <pkg>Dnf remove <pkg>Dnf search <term>Dnf info <pkg>Dnf autoremoveDnf module list
Check for updatesnullnullnullnullnullnullnull
nullUpdate all packagesnullnullnullnullnullnull
nullnullInstall packagenullnullnullnullnull
nullnullnullRemove packagenullnullnullnull
nullnullnullnullSearch packagesnullnullnull
nullnullnullnullnullShow package detailsnullnull
nullnullnullnullnullnullRemove orphaned dependenciesnull
nullnullnullnullnullnullnullList module streams (Fedora/RHEL)
  • /etc/dnf/dnf.conf
  • /etc/yum.repos.d/
  • /etc/dnf/modules.d/
dnf is backward-compatible with yum commands. Uses libsolv for dependency resolution (faster). Module streams enable multiple versions of same software (e.g., nodejs:14, nodejs:16).
Homebrew (brew)macOS, Linux (via Linuxbrew)Missing package manager for macOS. Installs packages to /usr/local (or ~/.linuxbrew on Linux). Simple formula-based system. Community-maintained.
Brew updateBrew upgradeBrew install <pkg>Brew uninstall <pkg>Brew search <term>Brew info <pkg>Brew listBrew tap <repo>
Update Homebrew and formulaenullnullnullnullnullnullnull
nullUpgrade all installed packagesnullnullnullnullnullnull
nullnullInstall packagenullnullnullnullnull
nullnullnullRemove packagenullnullnullnull
nullnullnullnullSearch formulaenullnullnull
nullnullnullnullnullShow package infonullnull
nullnullnullnullnullnullList installed packagesnull
nullnullnullnullnullnullnullAdd additional repository
  • /usr/local/Homebrew/Library/Taps/
  • ~/.brew/ (Linuxbrew)
  • /usr/local/etc/brew.git
Installs from source by default (can use bottles = pre-built binaries). macOS GUI apps via brew install --cask. Linuxbrew requires build tools (gcc, make). Doesn't manage macOS system packages (use apt/dpkg in Linux subsystem).
pacmanArch Linux, ManjaroSimple, fast package manager for Arch Linux. Binary packages, minimal dependency handling, rolling release model.
Pacman syPacman syuPacman s <pkg>Pacman r <pkg>Pacman rns <pkg>Pacman ss <term>Pacman qi <pkg>Pacman ql <pkg>
Sync package databasesnullnullnullnullnullnullnull
nullFull system upgradenullnullnullnullnullnull
nullnullInstall package(s)nullnullnullnullnull
nullnullnullRemove packagenullnullnullnull
nullnullnullnullRemove package and depsnullnullnull
nullnullnullnullnullSearch packagesnullnull
nullnullnullnullnullnullShow package infonull
nullnullnullnullnullnullnullList package files
  • /etc/pacman.conf
  • /etc/pacman.d/
  • /etc/pacman.d/mirrorlist
Arch is rolling release: pacman -Syu updates everything. -Syy forces refresh. Use pacman -Q to query local DB. AUR (Arch User Repository) accessed via helpers like yay or paru (not official pacman).
dpkgDebian, Ubuntu (low-level)Low-level Debian package manager. Used by apt underneath. Handles .deb files directly without dependency resolution.
Dpkg i <file.deb>Dpkg r <pkg>Dpkg p <pkg>Dpkg lDpkg l <pkg>Dpkg s <file>Dpkg c <file.deb>Dpkg reconfigure <pkg>
Install .deb packagenullnullnullnullnullnullnull
nullRemove package (keep config)nullnullnullnullnullnull
nullnullPurge package and confignullnullnullnullnull
nullnullnullList all installed packagesnullnullnullnull
nullnullnullnullList files installed by packagenullnullnull
nullnullnullnullnullFind which package owns filenullnull
nullnullnullnullnullnullList contents of .deb filenull
nullnullnullnullnullnullnullRe-run package config
  • /var/lib/dpkg/status
  • /var/lib/dpkg/available
  • /etc/apt/sources.list (for apt integration)
Use dpkg --force-all carefully. dpkg -i doesn't resolve dependencies (apt-get -f install fixes). dpkg-query provides more advanced querying. Configuration files stored in /etc and preserved on remove unless purged.

Fields

The shape of this dataset, read from the data itself: every column, its type and a real value. Agents can use this to plan a query without fetching the whole document.

SectionFieldTypeExample
managersnamestringapt (Advanced Package Tool)
managersplatformstringDebian, Ubuntu, Linux Mint
managersdescriptionstringHigh-level package manager for Debian-based sys…
managerscommon_commandsarray[8 items]
managersconfig_filesarray[3 items]
managersnotesstringUse apt-get for scripts (stable output), apt fo…

Fetch the same bytes

The static files contain the same reference rows as the API, with no API rate limit. Live metadata, such as view counts, may differ. Use the API for content negotiation; use the static files for a cacheable snapshot.

curl "https://yjtoon.yunusemrevurgun.com/api/dataset/unix-package-management?format=toon"
const res = await fetch(
  "https://yjtoon.yunusemrevurgun.com/static-data/dataset/unix-package-management.toon"
);
const toon = await res.text();

Rate limit: 120 requests per minute per IP, no key and no signup. API reference →

Topics

  • unix
  • linux
  • package-manager
  • apt
  • yum
  • dnf
  • brew
  • pacman

Search the library

Search by a topic, title, or keyword.

Start with a collection

Browse all 205 datasets