Linux Package Management & Software Building — apt/dpkg, dnf/rpm, pacman, from-source & kernel build

Parent: DevOps, Infrastructure & Observability · Published reference · snapshot 2026-09-08 · skill devops-linux-admin/references/linux-package-management.md

↓ Facts as markdownall context files

A Linux package is an archive of files plus metadata (name, version, dependencies, scripts,

These notes link each claim to its source. Some citations identify archived research reports that are no longer hosted on this site. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Overview

Core Concepts (the shared branch)

apt / dpkg (Debian, Ubuntu, Mint, Pop!_OS)

dnf / rpm (Fedora, RHEL, Rocky, Alma, openSUSE uses zypper)

pacman (Arch, Manjaro, EndeavourOS)

Universal formats (cross-distro, dependency-bundled)

Building from source

The three build systems you'll meet

Source-build hygiene (the patterns that keep it maintainable)

Kernel build basics

Anti-patterns

References

Where this helps

Project ideas

Common mistakes

Known issues

Children

Frontier under this node: Building from source (autotools configure/make, CMake, Meson/Ninja, prefix isolation, checkinstall, GNU Stow, ldconfig), Cross-distro troubleshooting (NO_PUBKEY, dpkg interrupted, broken/held deps, rpmdb corruption, pacman PGP signature, missing -dev headers, kernel won't boot), Linux kernel build (menuconfig/localmodconfig/olddefconfig, make -j, modules_install, bzImage, initramfs + GRUB, fallback boot), Shared package model (packages, dependencies, repositories, transactions, signing, explicit-vs-dependency), Universal formats — Flatpak/Snap/Nix (dependency-bundled, cross-distro tradeoffs), apt/dpkg on Debian/Ubuntu (APT 3.0 solver3, deb822 + Signed-By keyrings, apt-mark hold, dpkg low-level), dnf/rpm on Fedora/RHEL (dnf5, transaction history undo/rollback, gpgcheck, rpm -V/--rebuilddb, RHEL core-package caveat), pacman on Arch (-Syu vs the partial-upgrade hazard, flag grammar, orphans, archlinux-keyring desync, PKGBUILD/makepkg/AUR)

← the whole tree · 3D view· how to read this page