1

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.

0x777C
  • 480

1 Answers1

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 packages
  • apt list: lists all packages with search name, supports glob
  • apt search: searches packages with search name or description, supports regex
  • apt show: shows information on a package
  • apt 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
  • 27,991