To me it seems like needless hassel for the lay user but I assume there must be some advantage over just automatically updating the repository when the user wants to upgrade.
Asked
Active
Viewed 416 times
1 Answers
2
update
is separated by upgrade
, because upgrade
is not the only command you can run on an updated local package index.
apt upgrade
: upgrade all packagesapt list
: lists all packages with search name, supports globapt search
: searches packages with search name or description, supports regexapt show
: shows information on a packageapt policy
: shows installation policy for a package
Combining these commands with update
would be very inefficient. For todays desktop user with high-speed internet it seems to be obsolete. But for a sysadmin or some scripted solutions this is still relevant.
As a simple "workaround" you could add a function aptup
to your bashrc
:
echo 'aptup () { sudo apt update && sudo apt -y upgrade; }' >> ~/.bashrc
source ~/.bashrc
(Remove the -y
if you want to be asked for confirmation before upgrading).
Then you can run aptup
to update
and upgrade
the system.

pLumo
- 26,947
sudo apt update;
, but in an automated environment there is no second saved, and that process can occur multiple times. This is only one advantage. – guiverc Aug 06 '18 at 13:47