How to disable flatpak entirely without breaking KDE?

I was looking about the software manager, and noticed that trying to remove flatpak entirely, will make openSUSE break KDE.


However, removing some of the flatpak support packages will reinstall them when I do zypper dup even though I don’t want flatpak to be enabled:

Try:

sudo zypper al flatpak*

Then try your upgrade and see what messages result.

After reinstalling openSUSE to get my other issue for spectacle fixed (and I don’t know why that fixed the issue) it updated all those packages already, but I added the lock anyway and it looks like it won’t install it:

The following 11 items are locked and will not be changed by any action:
 Available:
  discover6-backend-flatpak flatpak flatpak-builder flatpak-devel flatpak-kcm6 flatpak-kcm6-lang
  flatpak-remote-flathub flatpak-selinux flatpak-spawn flatpak-xdg-utils flatpak-zsh-completion

Hopefully it won’t break the next time an update occurs. Doubtful.

What the command did was add a lock on all packages named flatpak*. For any package so named to be added, removed or updated, the lock must be removed or ignored. Command sudo zypper rl flatpack* will cause lock removal. Because of the wildcard in the lock name, zypper with answer yes to its query during a running transaction whether or not to remove it, will ignore the lock’s existence, rather than actually removing it.

Please, whenever you want in this command (and others) that the “wild card” character is 100% sure interpreted by zypper and not already by your shell (bash), then escape the *. E.g.

zypper al 'flatpak*'

When things go wrong most people will probably not understand why. Thus better always escape characters that are special to the shell, but must not be interpreted by the shell, but by the command given. You can omit this at your own system (knowing what your environment is), but advising it to those who may be less fluent in the shells peculiarities is another thing.

1 Like