Package Management

apt/dpkg, yum/dnf/rpm, snap, and compiling from source — the full software installation stack.

Overview

Package managers are the first skill you use on any new server. Knowing both ecosystems is essential because job requirements don't pick one family for you.

Two Major Families

  • Debian / Ubuntu — apt — dpkg — .deb
  • RHEL / Fedora / CentOS — dnf / yum — rpm — .rpm

Key concepts

  • apt vs dpkg
  • dnf vs rpm
  • /etc/apt/sources.list format
  • snap confinement levels

Interview questions

  • What is the difference between apt update, apt upgrade, and apt dist-upgrade?
  • How would you find which package owns a specific file on a Debian/Ubuntu system?

Sign up free to read the full topic

More Linux topics

Start free on Cariara · Coding problems · System design studio