Package Management
Package managers install software, resolve dependencies, and keep systems updated.
Overview
- Packages bundle binaries, configuration, and dependency metadata
- Package managers add install, remove, upgrade, and repository workflows
- Debian-based systems commonly use
dpkgandapt
Reference
Common tools
| Command | Purpose |
|---|---|
dpkg |
Install and manage Debian package files |
apt |
High-level package manager for Debian-based systems |
aptitude |
Alternative front end for Debian package management |
snap |
Install and manage snap packages |
gem |
Manage Ruby packages |
pip |
Install Python packages |
git |
Distributed version control and source retrieval |
APT
dpkgworks with local.debfilesapthandles dependency resolution through repositories/etc/apt/sources.listdefines the repositories a system can queryapt-cachesearches the local package cache
apt-cache search impacketMental Model
- Use
dpkgfor package files andaptfor dependency-aware installs - Repository metadata is as important as the package itself
- Package managers trade manual effort for repeatable installation and updates