Remove old flatpak Nvidia drivers

I notice while doing a manual flatpak update 14 of the 20 packages updated were Nvidia drivers. They seem to be getting larger in size as each new version is released. Most are greater than 300MB’s.

 1. [✓] fr.handbrake.ghb.Locale                                    stable             u              flathub                3.8 kB / 534.2 kB
 2. [✓] org.freedesktop.Platform.GL.nvidia-520-56-06               1.4                u              flathub              406.2 MB / 407.0 MB
 3. [✓] org.freedesktop.Platform.GL.nvidia-525-60-11               1.4                u              flathub              413.9 MB / 414.7 MB
 4. [✓] org.freedesktop.Platform.GL.nvidia-525-78-01               1.4                u              flathub              414.0 MB / 414.8 MB
 5. [✓] org.freedesktop.Platform.GL32.nvidia-495-44                1.4                u              flathub              282.3 MB / 283.0 MB
 6. [✓] org.freedesktop.Platform.GL32.nvidia-495-46                1.4                u              flathub              280.9 MB / 281.6 MB
 7. [/] org.freedesktop.Platform.GL32.nvidia-510-47-03             1.4                u              flathub              328.8 MB / 329.6 MB
 8. [ ] org.freedesktop.Platform.GL32.nvidia-510-60-02             1.4                u              flathub            < 329.0 MB
 9. [ ] org.freedesktop.Platform.GL32.nvidia-510-68-02             1.4                u              flathub            < 330.0 MB
10. [ ] org.freedesktop.Platform.GL32.nvidia-515-57                1.4                u              flathub            < 364.1 MB
11. [ ] org.freedesktop.Platform.GL32.nvidia-515-65-01             1.4                u              flathub            < 364.9 MB
12. [ ] org.freedesktop.Platform.GL32.nvidia-515-76                1.4                u              flathub            < 365.6 MB
13. [ ] org.freedesktop.Platform.GL32.nvidia-520-56-06             1.4                u              flathub            < 406.9 MB
14. [ ] org.freedesktop.Platform.GL32.nvidia-525-60-11             1.4                u              flathub            < 414.6 MB
15. [ ] org.freedesktop.Platform.GL32.nvidia-525-78-01             1.4                u              flathub            < 414.8 MB
16. [ ] org.gnome.Calls.Locale                                     stable             u              flathub              < 3.2 MB (partial)
17. [ ] org.gnome.Calls                                            stable             u              flathub             < 11.5 MB
18. [ ] fr.handbrake.ghb                                           stable             u              flathub             < 45.2 MB
19. [ ] com.dropbox.Client                                         stable             u              flathub            < 111.1 MB
20. [ ] us.zoom.Zoom                                               stable             u              flathub            < 168.5 MB

Do I remove these old versions using the usual method, one at a time? Will it break the system by removing them?

Will using a command like this for each of them be okay?
flatpak uninstall org.freedesktop.Platform.GL.nvidia-520-56-06?

Is there a way to remove all but the current driver with one command?

Why is it that the Nvidia drivers were installed using rpm-ostree, but flatpak is keeping them updated? Are there two different sets of drivers on the system?

Thanks in advance for any input on this matter.

Those are the runtime environments for flatpak apps that may use the nvidia drivers. I find it doubtful that anything is using drivers older than the 515 version, but it may be so, depending upon which flatpak apps you may have installed.

I think that when you remove one it will tell you if there is an app that requires that flatpak so it should be safe to start from the oldest of those and remove them one at a time as you get progressively closer to the current environment.

I may note that when I started a flatpak update it actually is installing the 525.78.01 version which was not previously there.

I also note that your list shows the GL32 versions and only 2 of the GL versions. Do you by chance have steam or any other flatpak app installed that would require those 32 bit versions.?

When atempting to run:

flatpak uninstall --unused

I get almost every flatpak on my system: Over thirty packages. Too many to list here.

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

Seems like all my packages. This is almost totaling 1GB over just drivers.

I guess when I answer yes, it will uninstall just the driver, then prompt me again with a similar response for each of the old drivers?

Yes, I have Steam and other game launchers installed.

So what’s really happening here, is the rpm-ostree NVIDIA drivers are only being used by the CoreOS, and the Flatpaks are using their own NVIDIA driver? And each can retain a different version of the driver, causing the installation to swell to over 1 GB of NVIDIA drivers? I’m starting to think all this isolation is ridiculous. Using Flatpak, I mean. All this redundancy is getting out of hand.

I remember the old SCO Unix days, where the system was stable, and secure as could be, before the internet, and it just worked.

Now, today I’m supposed to accept 14 versions of the same video driver on my system, taking up almost 1 GB of space. That means a 78 MB package needs a 348 MB driver to function isolated on its on? What kind of damage can a music or video package do, that’s so bad it needs 500 MB of support, so my other packages don’t know what song I’m listening to? :rofl:

That command flatpak uninstall --unused should not remove anything necessary. The latest version of the nvidia pak should be the only one needed since that is likely the drivers you have installed.

I just removed 4 versions with my update and installed the newest.

Unlike dnf or rpm-ostree a flatpak update only upgrades the already installed paks and installs newer ones (though it did remove 2 of 31 for me). The uninstall seems needed to remove all the unused ones.

Well, I’m going to remove all, but the current one, and I’ll see what happens. When I do a flatpak repair, it should install only what’s necessary, I hope.

What’s funny, these flatpak are so isolated now, we have to go out of our way to make the ones that need to interact with one another. Take the Shotwell package, it has a nice feature that will create a desktop-slideshow as a background using any of your photos, the flatpak can’t function even though they created a xdg-desktop channel for it to function, it still doesn’t. So I had to layer it using rpm-ostree. Then the desktop-slideshow works.

Thanks for the responses, @computersavvy

It seems only two of the old drivers were uninstalled:


        ID                                                               Branch                 Op
 1. [-] org.chromium.Chromium.Locale                                     stable                 r
 2. [-] org.freedesktop.Platform.GL.nvidia-520-56-06                     1.4                    r
 3. [-] org.freedesktop.Platform.GL.nvidia-525-60-11                     1.4                    r
 4. [-] org.freedesktop.Platform                                         21.08                  r
 5. [-] org.freedesktop.Platform.Locale                                  21.08                  r
 6. [-] org.kde.PlatformTheme.QGnomePlatform                             5.15-21.08             r
 7. [-] org.kde.PlatformTheme.QGnomePlatform                             6.4                    r
 8. [-] org.kde.PlatformTheme.QtSNI                                      5.15-21.08             r
 9. [-] org.kde.WaylandDecoration.QGnomePlatform-decoration              5.15-21.08             r
10. [-] org.kde.WaylandDecoration.QGnomePlatform-decoration              6.4                    r

Uninstall complete.

I try and run a pure GNOME GTK system and remove any and everything KDE and Qt.

What does flatpak uninstall --unused return now?
What does flatpak list return now?
If you have something that requires those GL32 packages then the uninstall command should not touch them.

You can try removing them one at a time starting with the oldest and if they are required it should tell you what and why it will not uninstall the particular one named.

02:14:32 james@HP-Z840 ~ → flatpak uninstall --unused

These runtimes in installation 'system' are pinned and won't be removed; see flatpak-pin(1):
  runtime/com.valvesoftware.Steam.CompatibilityTool.Proton/x86_64/stable
  runtime/org.fedoraproject.Platform/x86_64/f35
  runtime/org.freedesktop.Platform.openh264/x86_64/2.3.1
Nothing unused to uninstall
03:34:31 james@HP-Z840 ~ →
i386                                  org.freedesktop.Platform.Compat.i386                                   22.08       flathub system
Mesa                                  org.freedesktop.Platform.GL.default               21.3.9               21.08       flathub system
Mesa                                  org.freedesktop.Platform.GL.default               22.3.2               22.08       flathub system
Mesa (Extra)                          org.freedesktop.Platform.GL.default               22.3.2               22.08-extra flathub system
nvidia-525-78-01                      org.freedesktop.Platform.GL.nvidia-525-78-01                           1.4         flathub system
Mesa                                  org.freedesktop.Platform.GL32.default             22.3.2               22.08       flathub system
Mesa (Extra)                          org.freedesktop.Platform.GL32.default             22.3.2               22.08-extra flathub system
nvidia-495-44                         org.freedesktop.Platform.GL32.nvidia-495-44                            1.4         flathub system
nvidia-495-46                         org.freedesktop.Platform.GL32.nvidia-495-46                            1.4         flathub system
nvidia-510-47-03                      org.freedesktop.Platform.GL32.nvidia-510-47-03                         1.4         flathub system
nvidia-510-60-02                      org.freedesktop.Platform.GL32.nvidia-510-60-02                         1.4         flathub system
nvidia-510-68-02                      org.freedesktop.Platform.GL32.nvidia-510-68-02                         1.4         flathub system
nvidia-515-57                         org.freedesktop.Platform.GL32.nvidia-515-57                            1.4         flathub system
nvidia-515-65-01                      org.freedesktop.Platform.GL32.nvidia-515-65-01                         1.4         flathub system
nvidia-515-76                         org.freedesktop.Platform.GL32.nvidia-515-76                            1.4         flathub system
nvidia-520-56-06                      org.freedesktop.Platform.GL32.nvidia-520-56-06                         1.4         flathub system
nvidia-525-60-11                      org.freedesktop.Platform.GL32.nvidia-525-60-11                         1.4         flathub system
nvidia-525-78-01                      org.freedesktop.Platform.GL32.nvidia-525-78-01                         1.4         flathub system
ffmpeg-full                           org.freedesktop.Platform.ffmpeg-full                                   22.08       flathub system
openh264                              org.freedesktop.Platform.openh264                 2.1.0                2.0         flathub system
openh264                              org.freedesktop.Platform.openh264                 2.1.0                2.2.0       flathub system
openh264                              org.freedesktop.Platform.openh264                 2.1.0                2.3.0       flathub system
openh264                              org.freedesktop.Platform.openh264                 2.1.0                2.3.1       flathub system

Noticed it removed the two older GL, and not the GL32 paks. There is even some nvidia-495.

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

Apparently it installed both 32bit and 64bit

Try flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-495-44 and let us know what the result is.

03:46:25 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-495-44
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-495-44’
03:47:34 james@HP-Z840 ~ →
1 Like
03:46:25 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-495-44
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-495-44’

03:47:34 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-495-46
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-495-46’

03:48:54 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-510-47-03
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-510-47-03’

03:49:25 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-510-60-02
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-510-60-02’

03:49:42 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-510-68-02
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-510-68-02’

03:50:17 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-515-65-01
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-515-65-01’

03:50:31 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-515-76
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-515-76’

03:50:44 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-520-56-06
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-520-56-06’

03:51:01 james@HP-Z840 ~ → flatpak uninstall -vv --app org.freedesktop.Platform.GL32.nvidia-525-60-11
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-525-60-11’
03:51:17 james@HP-Z840 ~ →

Try it without the --app. That may be an error since the platform driver was not directly installed. I don’t have a system where I can test that command.

04:11:58 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-495-44
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-495-44 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:12:28 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-495-46
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-495-46 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:12:41 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-510-47-03
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-510-47-03 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:13:07 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-510-68-02
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-510-68-02 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:13:41 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-515-65-01
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-515-65-01 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:14:05 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-515-76
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-515-76 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:14:25 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-520-56-06
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-520-56-06 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:15:08 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-525-60-11
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-525-60-11 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:15:32 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-510-60-02
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-510-60-02 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:16:02 james@HP-Z840 ~ → flatpak uninstall -vv org.freedesktop.Platform.GL32.nvidia-520-56-06
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /var/home/james/.local/share/flatpak
Info: applications using the extension org.freedesktop.Platform.GL32.nvidia-520-56-06 branch 1.4:
   com.valvesoftware.Steam
Really remove? [y/n]: n
04:16:47 james@HP-Z840 ~ →

They all belong to com.valvesoftware.Steam

Apparently the Steam client is not releasing those drivers as a requirement. I have contacted Valve tech support. Waiting on a response from them.

I disagree. They were initially called for by steam and are still linked as such, but steam now uses the one for the currently installed driver so the older ones could be removed.

That does clearly show why they are not ‘unused’, but in this case since the actual drivers are long gone can still be removed.

How did you install steam.?
Flatpak or RPM?
I installed steam on my system as an RPM from rpmfusion and it did not pull in those GL32 packages for nvidia.

Just recently I removed 4 similar packages (older versions) that claimed they were linked to 4 different apps. Removing them did not break any of the apps since the current versioned one was already installed.