apt (Advanced Packaging Tool)
  • introduced in 2014
  • combined the most commonly used features of apt-get and apt-cache into a more user-friendly interface
  • key features of APT 1.0 included a simplified command set, colored output for commands like apt update, and progress indicators during installation and removal, making package management more intuitive for users

apt vs apt-get/apt-cache

apt command

the command it replaces

function of the command

apt install

apt-get install

installs a package

apt remove

apt-get remove

removes a package

apt purge

apt-get purge

removes package with configuration

apt update

apt-get update

refreshes repository index

apt upgrade

apt-get upgrade

upgrades all upgradable packages

apt autoremove

apt-get autoremove

removes unwanted packages

apt full-upgrade

apt-get dist-upgrade

upgrades packages with auto-handling of dependencies

apt search

apt-cache search

searches for the program

apt show

apt-cache show

shows package details

apt has a few commands of its own as well

new apt command

function of the command

apt list

lists packages with criteria (installed, upgradable etc)

apt edit-sources

edits sources list