Excessive NVIDIA driver installations on Fedora+flathub

Hi folks! I’m not sure if this is a flatpak question, a flathub question, a Fedora question, or a mix of all, but I was recommended to start asking here so here goes. :slight_smile:

I’ve got a Fedora system with NVIDIA proprietary driver packages installed (just updated to Fedora 32, but it’s been running since … 27 or 28 with upgrades each version). I have somehow accumulated a lot of NVIDIA GL drivers in my flatpak setup:

$ flatpak list | grep nvidia
nvidia-390-48	org.freedesktop.Platform.GL.nvidia-390-48		1.4	system
nvidia-390-59	org.freedesktop.Platform.GL.nvidia-390-59		1.4	system
nvidia-396-45	org.freedesktop.Platform.GL.nvidia-396-45		1.4	system
nvidia-396-54	org.freedesktop.Platform.GL.nvidia-396-54		1.4	system
nvidia-410-66	org.freedesktop.Platform.GL.nvidia-410-66		1.4	system
nvidia-410-73	org.freedesktop.Platform.GL.nvidia-410-73		1.4	system
nvidia-410-78	org.freedesktop.Platform.GL.nvidia-410-78		1.4	system
nvidia-415-25	org.freedesktop.Platform.GL.nvidia-415-25		1.4	system
nvidia-415-27	org.freedesktop.Platform.GL.nvidia-415-27		1.4	system
nvidia-418-43	org.freedesktop.Platform.GL.nvidia-418-43		1.4	system
nvidia-418-56	org.freedesktop.Platform.GL.nvidia-418-56		1.4	system
nvidia-418-74	org.freedesktop.Platform.GL.nvidia-418-74		1.4	system
nvidia-430-26	org.freedesktop.Platform.GL.nvidia-430-26		1.4	system
nvidia-430-40	org.freedesktop.Platform.GL.nvidia-430-40		1.4	system
nvidia-435-21	org.freedesktop.Platform.GL.nvidia-435-21		1.4	system
nvidia-440-31	org.freedesktop.Platform.GL.nvidia-440-31		1.4	system
nvidia-440-36	org.freedesktop.Platform.GL.nvidia-440-36		1.4	system
nvidia-440-44	org.freedesktop.Platform.GL.nvidia-440-44		1.4	system
nvidia-440-59	org.freedesktop.Platform.GL.nvidia-440-59		1.4	system
nvidia-440-82	org.freedesktop.Platform.GL.nvidia-440-82		1.4	system

I have no idea where they keep coming from or why the old versions don’t go away automatically. I’ve tried flatpak remove --unused but they’re not removed.

Any advice? I’d like to know if it’s possible to have them automatically removed when they’re replaced with new versions (I don’t want to have to manually remove them one by one, and I suspect other people have this problem too).

Thanks! I’m comfortable with the command line and would be happy to poke around and run commands to help probe for more info if that helps.