Nvidia drivers flatpak/rpm and outdated runtimes

Hi,
i have some trouble to understand nvidia drivers installation and managment with packages managment (flatpak/rpm-dnf).


my  config : 
`System:
  Kernel: 6.8.7-300.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-34.fc40
  Desktop: GNOME v: 46.1 tk: GTK v: 3.24.41 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)

Graphics:
  Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q]
    driver: nvidia v: 550.76
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile
    Series] driver: amdgpu v: kernel
  Device-3: Chicony Integrated Camera driver: uvcvideo
    type: USB
  Display: wayland server: X.Org v: 23.2.6 with: Xwayland
    v: 23.2.6 compositor: gnome-shell v: 46.1 driver:
    dri: radeonsi gpu: amdgpu,nvidia,nvidia-nvswitch
    resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.0.6 renderer: AMD
    Radeon Graphics (radeonsi renoir LLVM 18.1.1 DRM 3.57
    6.8.7-300.fc40.x86_64)
  API: EGL Message: EGL data requires eglinfo. Check
    --recommends.

My system has flatpak and rpm versions of nvidia drivers. Is it ormal ?
in flatpak :

flatpak list | grep -i nvidia
nvidia-550-76	org.freedesktop.Platform.GL.nvidia-550-76		1.4	flathub	system
nvidia-535-104-05	org.freedesktop.Platform.GL32.nvidia-535-104-05		1.4	flathub	system
nvidia-535-113-01	org.freedesktop.Platform.GL32.nvidia-535-113-01		1.4	flathub	system
nvidia-535-129-03	org.freedesktop.Platform.GL32.nvidia-535-129-03		1.4	flathub	system
nvidia-535-86-05	org.freedesktop.Platform.GL32.nvidia-535-86-05		1.4	flathub	system
nvidia-535-98	org.freedesktop.Platform.GL32.nvidia-535-98		1.4	flathub	system
nvidia-545-29-06	org.freedesktop.Platform.GL32.nvidia-545-29-06		1.4	flathub	system
nvidia-550-54-14	org.freedesktop.Platform.GL32.nvidia-550-54-14		1.4	flathub	system
nvidia-550-67	org.freedesktop.Platform.GL32.nvidia-550-67		1.4	flathub	system
nvidia-550-76	org.freedesktop.Platform.GL32.nvidia-550-76		1.4	flathub	system

and these entries with rpm :

rpm -qa | grep -i nvidia
kmod-nvidia-6.8.7-200.fc39.x86_64-550.76-1.fc39.x86_64
nvidia-gpu-firmware-20240410-1.fc40.noarch
xorg-x11-drv-nvidia-kmodsrc-550.76-1.fc40.x86_64
nvidia-modprobe-550.76-1.fc40.x86_64
xorg-x11-drv-nvidia-cuda-libs-550.76-1.fc40.x86_64
nvidia-persistenced-550.76-1.fc40.x86_64
xorg-x11-drv-nvidia-libs-550.76-1.fc40.x86_64
akmod-nvidia-550.76-1.fc40.x86_64
nvidia-settings-550.76-1.fc40.x86_64
xorg-x11-drv-nvidia-power-550.76-1.fc40.x86_64
xorg-x11-drv-nvidia-550.76-1.fc40.x86_64
xorg-x11-drv-nvidia-cuda-550.76-1.fc40.x86_64
kmod-nvidia-6.8.7-300.fc40.x86_64-550.76-1.fc40.x86_64

are these duplicates
why flatpak has 535,545,550 verions and rpm only has 550 version ?
may i uninstall 535 and 545 flatpak versions ? 550 flatpak version too ?

Thanks in advance for your answer.
Regards

flatpak uninstall --unused
2 Likes

Since you currently have only the 550.76 drivers installed you could easily remove the flatpak runtimes for every other driver version. Updating drivers does not automatically remove and clean up those runtimes.

Yes, it is normal, but is not necessary to retain the older ones. You can remove all the older nvidia flatpak runtimes. I see only 2 in that list you may need to keep – the first and last.

I actually have none of those flatpak runtimes installed even though I do use nvidia.

It is preferred that you display the installed packages using
dnf list installed \*nvidia\* since that also provides the source the packages were installed from and in a tabular (sorted) format to make easy reading.

$ dnf list installed \*nvidia\*
Installed Packages
akmod-nvidia.x86_64                                              3:550.76-1.fc40                          @rpmfusion-nonfree-updates
kmod-nvidia-6.8.6-200.fc39.x86_64.x86_64                         3:550.67-1.fc39                          @@commandline             
kmod-nvidia-6.8.7-200.fc39.x86_64.x86_64                         3:550.67-1.fc39                          @@commandline             
kmod-nvidia-6.8.7-300.fc40.x86_64.x86_64                         3:550.76-1.fc40                          @@commandline             
nvidia-gpu-firmware.noarch                                       20240410-1.fc40                          @updates                  
nvidia-modprobe.x86_64                                           3:550.76-1.fc40                          @rpmfusion-nonfree-updates
nvidia-persistenced.x86_64                                       3:550.76-1.fc40                          @rpmfusion-nonfree-updates
nvidia-settings.x86_64                                           3:550.76-1.fc40                          @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                                       3:550.76-1.fc40                          @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda.x86_64                                  3:550.76-1.fc40                          @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.i686                               3:550.76-1.fc40                          @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64                             3:550.76-1.fc40                          @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64                               3:550.76-1.fc40                          @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.i686                                    3:550.76-1.fc40                          @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64                                  3:550.76-1.fc40                          @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64                                 3:550.76-1.fc40                          @rpmfusion-nonfree-updates

Removed gnome, server, wayland

Removed amd, amdgpu, radeon

cleaning done.

I didn’t truly understand that the graphical drivers for
Flatpak were only supposed to run Flatpak applications in a
sandbox environment.

Thanks for your replies.