Flatpak wants to remove everything?

Greetings Fedora community,

Just ran some dnf updates today in Black Box, got the latest mesa, nvidia drivers, etc. so I did a reboot, then ran flatpak update as usual to grab the latest nvidia flatpak updates, everything updated no problem. Now I like to remove old and no longer used flatpak packages, so I ran flatpak uninstall --unused to remove the older version of nvidia for flatpak and ran into this message:

1. [scott@fedora ~]$ flatpak uninstall --unused

2. Info: applications using the extension org.freedesktop.Platform.GL.nvidia-525-60-11 branch 1.4:

3. com.bitwarden.desktop, com.discordapp.Discord, com.mojang.Minecraft, io.mpv.Mpv, app.drey.Blurble, com.belmoussaoui.Obfuscate, com.github.hugolabe.Wike, com.github.taiko2k.tauonmb, com.leinardi.gwe, io.github.lainsce.Khronos, org.gabmus.whatip, org.gnome.Podcasts, org.gnome.Shotwell, org.gnome.World.PikaBackup, org.gnome.gitlab.somas.Apostrophe, org.gustavoperedo.FontDownloader, org.inkscape.Inkscape, app.drey.Dialect, app.drey.EarTag, app.drey.Warp, com.belmoussaoui.Authenticator, com.belmoussaoui.Decoder, com.bitstower.Markets, com.github.ADBeveridge.Raider, com.github.GradienceTeam.Gradience, com.github.geigi.cozy, com.github.johnfactotum.Foliate, com.github.johnfactotum.QuickLookup, com.github.liferooter.textpieces, com.github.tchx84.Flatseal, com.gitlab.newsflash, com.mattjakeman.ExtensionManager, com.rafaelmardojai.Blanket, com.raggesilver.BlackBox, com.rawtherapee.RawTherapee, de.haeckerfelix.Fragments, de.haeckerfelix.Shortwave, de.zwarf.picplanner, dev.geopjr.Collision, fr.romainvigier.MetadataCleaner, im.bernard.Nostalgia, info.febvre.Komikku, io.bassi.Amberol, io.github.celluloid_player.Celluloid, io.github.realmazharhussain.GdmSettings, io.github.seadve.Kooha, io.gitlab.adhami3310.Converter, io.gitlab.theevilskeleton.Upscaler, io.posidon.Paper, net.sapples.LiveCaptions, org.darktable.Darktable, org.freedesktop.Piper, org.gabmus.gfeeds, org.gnome.Chess, org.gnome.DejaDup, org.gnome.Epiphany, org.gnome.Extensions, org.gnome.Maps, org.gnome.Todo, org.gnome.World.Secrets, org.gnome.gitlab.YaLTeR.Identity, org.gnome.gitlab.YaLTeR.VideoTrimmer, org.nickvision.money, org.nickvision.tagger, org.nickvision.tubeconverter, re.sonny.Tangram, uk.co.ibboard.cawbird, org.kde.kid3, org.fedoraproject.MediaWriter

4. Really remove? [y/n]:

If anyone could please just let me know if it’s safe (doesn’t look like it) to hit yes to remove only the old nvidia flatpak driver, OR if this is indeed saying it’s going to remove all my flatpak applications, which is definitely something I do not want to do. Not sure if this is possibly some bug with flatpak updates maybe, but better thought I’d ask to be sure. Thanks for any help and my apologies if this is a stupid question, just wanted to be better safe than sorry!

Here’s a Pastebin link for better readability.

This is part of the reason I try to avoid flatpak unless absolutely necessary. I use the rpm version of the nvidia drivers from rpmfusion and have never needed to use the flatpak version. Yes, it has its place for some spins (maybe silverblue or kinoite) but not for most of the fedora spins.

In fact, I think that most of those flatpaks that seem dependent upon the nvidia flatpak would work just as well with the regular rpm version. Many also have an rpm version in the repos and could be installed from there. Some in the normal repos include discord, mpv, minecraft, inkscape, and several others. (I have not done an exhaustive search).

@computersavvy this is simply your point of view, your opinion. You can state your opinion, sure, but this doesn’t help to solve the technical issue @scottytrees is facing.

It is like: “I have a problem with Firefox” and you answer is “this is the reason you should avoid it and use Chromium” whatever problem I’m facing :sweat_smile:

(For the records, also my post is of no help :sweat_smile:)

1 Like

BTW it looks like some kind of bug.
You are not alone

--unused doesn't remove old NVidia runtime versions · Issue #2718 · flatpak/flatpak · GitHub

Flatpak downloads every nvidia driver from flathub at every update · Issue #42 · flathub/org.freedesktop.Platform.GL.nvidia · GitHub

I suggest to ask the question on the Flathub forum

1 Like

I believe you might be misunderstanding some key fundamental aspect with flatpaks. I do have the RPMfusion nvidia driver, which any RPM file will use. Flatpaks on the other hand do not rely on the RPMfusion nvidia driver, so flatpak has to bundle their own nvidia driver version, just like it bundles all the other components separately like the Gnome desktop 42/43 in the form of org.Gnome.Platform, org.freedesktop.Platform, or the dozens of other runtimes you need for flatpaks to work correctly.

You cannot interchange the RPMfusion nvidia driver with the flatpak nvidia driver, that is not how any of this works. If you have the RPMfusion nvidia driver installed, and you install a flatpak, then flatpak will pull in their own nvidia driver runtime so that flatpak will correctly launch, so it’s not really a choice to use it or not. The two nvidia drivers do not conflict with each other, so that’s not any really issue to ever need to worry about.

If you run flatpak list --runtime and you’ve installed some flatpaks of course, chances are you will have something in that list like (your version may vary):

nvidia-525-78-01   org.freedesktop.Platform.GL.nvidia-525-78-01

which is the nvidia runtime flatpaks need, without it, flatpaks may not launch on a system running on the RPMfusion nvidia driver.

@alciregi Thanks for checking out & posting some related bug reports. I went ahead and posted on the Flatpak discourse as well. Might file a bug report if I don’t hear anything back. Will see.

1 Like

I make the link to flatpak so that a easy following is possible.