I read about the new fancy progress bar which was added to apt
1.0 in Softpedia and how to enable it here. However on running sudo apt-get update
, I did not see the fancy progress bars. On reading the second link again, the solution explicitly requires you to use sudo apt update
.
Hence my question is the difference between apt
and apt-get
. I thought they were one and the same.
They are very similar command line tools available in Trusty (14.04) and later.
apt-get
andapt-cache
's most commonly used commands are available inapt
.apt-get
may be considered as lower-level and "back-end", and support other APT-based tools.apt
is designed for end-users (human) and its output may be changed between versions.Note from apt(8):
Take a look at this post for more information on the new tool:
A synopsis of the above link (with corrections*):
Currently the apt binary supports the following commands:
dpkg list
and can be used with flags like--installed
or--upgradable
.apt-cache search
but sorted alphabetically.apt-cache show
but hide some details that people are less likely to care about (like the hashes). The full record is still available viaapt-cache show
of course.apt-get update
with color output enabled, butapt update
also shows the number of upgradeable packages (if any).apt-get upgrade --with-new-pkgs
.*dist-upgrade
.sources.list
using$EDITOR
.apt-cache policy
You can enable/disable the install progress [bar] via:
As I write this, the
apt
man page (my apt package version: 1.0.1ubuntu2.8) includes the following section:There are various tools that interact with Advanced Packaging Tool (APT) and allow you to install, remove and manage packages in Debian based Linux distributions.
apt-get
is one such command-line tool which is widely popular. Another popular tool is Aptitude with both GUI and command-line options.If you have used
apt-get
commands, you might have come across a number of similar commands such asapt-cache
,apt-config
etc. And this is where the problem arises.You see, these commands are way too low level and they have so many functionalities which are perhaps never used by an average Linux user. On the other hand, the most commonly used package management commands are scattered across
apt-get
,apt-cache
andapt-config
.The
apt
commands have been introduced to solve this problem.apt
consists some of the most widely used features fromapt-get
,apt-cache
andapt-config
leaving aside obscure and seldom used features.With
apt
, you don’t have to fiddle your way fromapt-get
toapt-cache
toapt-config
.apt
is more structured and provides you with necessary options needed to manage packages.Bottom line:
apt
= most common used command options fromapt-get
,apt-cache
andapt-config
.I have written in detail on the difference between apt and apt-get.
APT is a vast project, whose original plans included a graphical interface. It is based on a library which contains the core application, and apt-get is the first front end — command-line based — which was developed within the project.
Quoted from:
https://debian-handbook.info/browse/stable/sect.apt-get.html