Linux GUI vs CLI Updates

I am not sure whether I should use the “software” GUI to update my Linux apps or the terminal.

The GUI includes RPM and Flatpak updates, if something like the Kernel gets updated, it requires a restart, that results in a special installation screen, that I never get if I update with the command line.

The GUI doesn’t include snap for some reason, if I want to update it, I have to use the command line.

What is better for updating?

I am on Fedora by the way, for the case its important.

1 Like

Why are you using Snap on Fedora?

Edit: I’m not on Fedora but if you can manage to update all your system via GUI I don’t think there is a problem to keep doing it.

The GUI is fine. The only thing to really consider is that some package managers will fairly frequently have notes following upgrades regarding changes you may need to manually perform. If the GUI doesn’t present these to you, that could be a problem at some point. This is probably more of an issue with rolling release distros though (I don’t usually use Fedora, so not sure how common it is there).

Presumably the reason it doesn’t include snap is that snap is pretty much only used on Ubuntu and Ubuntu derivatives. Also, unsure if this is still a problem, but last I heard the sandboxing for snap on non-AppArmor distros (like Fedora) was basically nonexistent.

1 Like

This at least says to stick to the GUI and restart every time you’re prompted for security and stability reasons.

Truthfully, this is something that also has confused me ever since I switched to Fedora. It’s a pretty big productivity drainer.

Actually, just having AppArmor enabled isn’t enough. Snap’s strict confinement depends on specific out-of-tree AppArmor kernel patches that Canonical bakes into Ubuntu.

If your distro uses the stock Linux kernel, even with AppArmor active (like Debian, Arch, or openSUSE) snapd lacks the necessary kernel-level hooks and drops down to partial confinement. Because of this fallback, non-Ubuntu AppArmor distros don’t actually get the full Snap sandbox, they get a degraded version of it.

1 Like

How about running

$ echo "alias update='sudo dnf upgrade --refresh -y && flatpak update -y && sudo snap refresh'" >> .bashrc && bash

After that, you can just enter the command $ update to terminal to update everything.

I use similar for Ubuntu:

alias u='sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo snap refresh'

Cumulatively it has saved probably hours of typing time already over the past 15 years.

2 Likes

Ah, yeah, I suppose I should have been more clear. I simply meant that without AppArmor you don’t even get those partial protections.

I don’t think it really matters much, as long as you’re getting your updates. Personally, I prefer to do my updates from the command line. It just feels faster than waiting for Discover (KDE software store GUI) to load my updates. (I’m a Fedora user too)

Oh, also, Discover does a bad job of reporting errors, in my experience. My Flatpak updates regularly fail, and it was easier to figure out why when I used the command line (my VPN gets blocked, I have to switch to a different server).

May I suggest instead using topgrade? (You’re missing firmware updates, by the way). I haven’t started using topgrade to actually do updates just yet, but I did use it to learn about new kinds of updates I could be making. I just run topgrade --cleanup --dry-run.