Skip to content

/compare/apt/apt-vs-apt-get

apt vs apt-get: which one to use

The commands on this page have not been executed by our verification runner yet.updated 2026-10-20
tool
apt
compares
apt vs apt-get

apt and apt-get use the same package database and repositories, so they install the same packages. apt is designed for interactive use: it combines the common parts of apt-get and apt-cache, shows a progress bar and colours, and may change its output between releases. apt-get keeps a stable interface and output. Type apt yourself; write apt-get (and apt-cache) in scripts and Dockerfiles.

Criterion by criterion

Criterionaptapt-get
Meant forpeople at a terminalscripts and automation
Outputprogress bar, colours; may changestable
In a pipewarns: apt does not have a stable CLI interfaceno warning
Search and showapt search, apt showapt-cache search, apt-cache show
List packagesapt list --installed / --upgradableno equivalent (use dpkg-query)
upgrademay install new dependenciesnever installs new packages (use dist-upgrade)
Edit sourcesapt edit-sourcesno

Equivalent commands

aptapt-get / apt-cache
apt updateapt-get update
apt install pkgapt-get install pkg
apt upgradeapt-get upgrade --with-new-pkgs
apt full-upgradeapt-get dist-upgrade
apt remove / purge / autoremoveapt-get remove / purge / autoremove
apt search termapt-cache search term
apt show pkgapt-cache show pkg

Sources