Everyday package management commands for Debian and Ubuntu using APT¶
Core Package Management¶
Install software.
Remove (uninstall) software.
Upgrade software.
Downgrade software.
Reinstall software.
Remove software and install another in one transaction (using chaining).
Remove all unneeded packages originally installed as dependencies.
Install build dependencies for a package or spec file.
Install debuginfo packages.
Change the reason for an installed package (mark as auto or manual).
Search and Information¶
Search for software matching all specified strings.
List packages depending on their relation to the system with additional details.
List packages depending on their relation to the system.
Find what package provides the given value.
Search for packages matching various criteria (cache information).
List groups of installed packages not required by other installed packages.
Show package changelogs.
Print a list of unresolved dependencies for repositories.
System Updates and Upgrades¶
Check for available package upgrades.
Upgrade or downgrade installed software to the latest available versions (handles changing dependencies).
Prepare the system for an upgrade to a new release.
Determine whether the system or systemd services need restarting.
Repository and Configuration Management¶
Manage repositories (add).
Manage Copr-equivalent repositories (Personal Package Archives).
Generate the metadata cache.
Remove or expire cached data.
Transactions and History¶
Manage transaction history (viewing log).