The history of the difference between update
and upgrade
is actually pretty cool.
Long, long ago --say around 2000 or so, years before Ubuntu existed--, bandwidth and disk space were much more limited...though expansive compared to mid-1990s. Broadband was just getting started, and dialup was still a vital way of getting online. Big disks were still only a few hundred MB. Apt was shiny and new, radical and revolutionary, built on top of dpkg.
The apt database, when you think about it, is a marvel: It's an accurate-to-the-minute database of all software from all known repositories. It's detailed enough for apt to calculate dependencies and identify available upgrades, yet small enough to transmit over the dial-up modems of the time and to store on the small drives of the time. Updating your database by phone might take minutes over a good connection. While that's a long time now, looking up package updates manually (before apt) could consume hours.
Back then, distros were built differently - no Continuous Integration, no smoke testing (well, not much testing at all!), build farms were just getting started. Upgrades had to be reverted more often than now. Many users chose to not upgrade certain packages for various reasons, or to select only certain upgrades today (to test manually), and other upgrades tomorrow.
Over the subsequent 15-or-so years, the tools have not changed much, which is why we still have separate update
and upgrade
actions. The user workflow has evolved as distro reliability has improved, and much of the source/update/upgrade management that used to be manual has been slowly hidden behind layers of automation (software-updater
, unattended-upgrades
).
Modernizing software package tools is one reason that Snaps and AppImage and Flatpack have recently appeared, but that's the next chapter.
alias
it anyway. The unix way is one command does one thing only anyway so separating fits better with the unix way if 'theological/philosophical' arguments are you thing too.apt dist-upgrade
and hit "n" to cancel, then change my mind I will save bandwidth because it won't 'update' in order to re-do myapt dist-upgrade
command... Even if 'dist-upgrade' did the update automatically, there are reasons to 'update' that don't include 'install', 'upgrade' or 'dist-upgrade' so the 'update' command would exist anyway..apt update
should just run automatically when required.