I have Ubuntu Server and Desktop 18.04 and 20.04, 4 releases (it through VirtualBox)
I want to know the correct and best approach to accomplish through only commands the two following scenarios:
- upgrade from 18.04 to 18.10 (or higher of the same release - i.e. 18.15 - if exists of course)
- upgrade from 18.04 to 20.04 (or higher of the latest release - i.e. 20.10 - if exists or course)
Therefore I am able to choice any of them.
I did do research and I found these commands
sudo do-release-upgrade -d
sudo apt full-upgrade
sudo apt dist-upgrade
Sadly there is no one page covering the three commands together to understand how each one works and when is mandatory use one over the others. So I created this post to avoid do a wrong choice.
sudo do-release-upgrade
. Note, there should be no-d
in the end. – user68186 Apr 14 '21 at 02:26