Is there an easy way to exclude certain packages from an upgrade? In Software Updater, you can simply uncheck the relevant packages. In Terminal, you’re asked if you want to upgrade all of them, and you have to say yes or no.
Do you then have to click “No,” copy the entire list, and then remove the packages you don’t want to upgrade?
Or is there an easier way to exclude kernel upgrades, for example? Perhaps with a - (minus) option added after sudo apt upgrade?
This is actually how the GUI does it.
It does not run the apt upgrade command. Instead, it creates an apt install list based on your checked and unchecked choices, which is why you get that same result as if you had done the same in terminal.
This means that sadly, no - there is not a truncated upgrade command that the GUI uses that you can also use to perform this action.
Aside from the apt mark hold, which you know about already - it is still just a series of install commands.
This is actually why a lot of the "old timers" prefer Synaptic for a GUI manager.
It has all these bells and whistles, is not over simplified and can mark packages as held, or exclude just one time.
It does not, however, have the Big bold icons and previews that Gnome Software has.
Hmmm.
I wonder if Synaptic could be 'modernized' for the next generation of GnuLinux users?
I've never used Synaptic to update the system before - only to install, remove or lock packages. I'll give that a try. Usually, I mostly use the Terminal; there, I just have to use the arrow key to bring up the command from the last update, and it's faster.
But then Synaptic seems to be better suited for this use case. I thought there might be a function similar to
sudo apt install --only-upgrade package1 package2
to exclude packages, as e.g.
sudo apt upgrade --not-upgrade package1 package2
It's too bad that doesn't exist for the terminal, but no big deal; I just thought I'd ask around.