Beginner Package: apt

apt

Install and manage software on Debian and Ubuntu.

Syntax

apt [command] [package]

Description

apt is the high-level package manager for Debian-based distributions, wrapping dpkg with dependency resolution, repository handling and a much friendlier command set than apt-get.

Examples

sudo apt update
Refresh the list of available packages from repositories
sudo apt install nginx
Install a package and its dependencies
sudo apt remove nginx
Remove a package, keeping its configuration files
sudo apt upgrade
Upgrade all installed packages to their latest versions
Debian-based only (Ubuntu, Debian, Linux Mint, etc.).

Applies to

Ubuntu Debian Linux Mint