# Debian/Ubuntu
$ sudo apt update && sudo apt upgrade -y
But this is equivalent to syspatch && pkg_add -u , this does not upgrade the computer from one version of the OS to the next. # Debian/Ubuntu
$ sudo apt update && sudo apt upgrade -y
But this is equivalent to syspatch && pkg_add -u , this does not upgrade the computer from one version of the OS to the next.But yes you are correct, if you want to upgrade a Ubuntu distribution like 26.04 you do need to issue a command like `sudo apt dist-upgrade` which is admittedly an additional command. But then you could run 26.04 for many years. In OpenBSD anytime the base system/kernel is upgraded for a security fix or point release you need to do a slightly more complex dance.
That is still wrong.
The correct form is `apt-get dist-upgrade` but that's just the command to update all packages to the latest versions in the same release of the OS. It is the equivalent of `apt full-upgrade` if you have the more modern `apt` command rather than `apt-get`.
So, no, that will not upgrade your distro.
The recommended course of action for Debian is to edit the repository config files, change to the new release names, and then do a full update.
It's a big job.
https://www.debian.org/releases/stable/release-notes/upgradi...
Ubuntu wraps this in simpler tools: `do-release-upgrade` from the shell, or Software Updater for GUI users.
I just upgraded my Ubuntu 24.04 box to 26.04, and my OpenBSD 7.9 box to 8.0. OpenBSD is quicker and easier.