apt vs apt get - RayGutt/PersonalWiki GitHub Wiki
Historically, when Debian first released, APT (not to be confused with the command apt
), the Advanced Packaging Tool was developed. APT is a front-end to the dpkg
command, Debian's package management software (also used by all Debian based distributions).
APT is an open-source command-line tool handling installation, configuration, and removal of packages.
apt-get
was one of the main command-line tools included in APT. There are other commands in APT, and it's often confusing for the users.
The apt
command was introduced in 2014 by Debian and was popularized after the Ubuntu 16.04 release. It is more user-friendly than apt-get
, apt-cache
, and all those more specialized tools.
apt Command | Command It Replaces | Function of Command |
---|---|---|
apt install |
apt-get install |
Install a package. |
apt remove |
apt-get remove |
Remove package. |
apt purge |
apt-get purge |
Remove package and configuration. |
apt update |
apt-get update |
Refresh repository index. |
apt upgrade |
apt-get upgrade |
Upgrade all upgradeable packages. |
apt autoremove |
apt-get autoremove |
Remove unwanted packages. |
apt full-upgrade |
apt-get dist-upgrade |
Upgrade package & auto-handle dependencies. |
apt search |
apt-cache search |
Search for a package. |
apt show |
apt-cache show |
Show package details. |
apt list |
new command | List packages with criteria (installed, all available, upgradeable) |
apt edit-sources |
new command | Edit the sources.list file in the preferred editor |
apt-get install
vs. apt install
both provides information about the packages and dependencies installed. But apt install
provides a progress bar and we have an idea of the remaining time.
Source: https://www.fosslinux.com/26044/guide-apt-vs-apt-get-commands-and-which-one-to-use.htm