What is a Package Manager?
Learn how Linux package managers install, update, and remove software automatically — and which package manager your distro uses.
March 16, 20255 min read
linuxpackagesaptdnfpacman
The Problem Package Managers Solve
Installing software manually means downloading binaries, resolving dependencies, handling updates, and removing leftovers yourself. A package manager automates all of this.
What a Package Manager Does
- Install software and all its dependencies
- Update packages to newer versions
- Remove software cleanly (no leftover files)
- Search for available packages in repositories
Package Manager Families
Repository System
Packages come from repositories — servers managed by the distro that host trusted software. Your system reads its repo list to know where to download from.
# Debian/Ubuntu repos
cat /etc/apt/sources.list
# Fedora repos
ls /etc/yum.repos.d/Low-level vs High-level
| Level | Tool | Does |
|---|---|---|
| Low-level | dpkg, rpm | Install a single .deb/.rpm file |
| High-level | apt, dnf, pacman | Resolves deps, downloads from repos |
Always prefer the high-level tool.
Don't know your distro's package manager? Run cat /etc/os-release to identify your distribution.
Quick Check
Which package manager is used on Ubuntu?
Exercise
Run cat /etc/os-release to find your distro. Identify which package manager it uses from the NAME field.