before upgrading from F42 to F43 I always check if there is enough disk space. Actually my /var partition seems to be filled up by flatpak. /var/lib/flatpak is using about 18 GB although there is only a few applications that are run by flatpak:
You seem to have a lot of space occupied by obsoleted versions of the nvidia runtimes. It would appear that you have the current latest nvidia driver (580-119-02) installed so all the older versions of that runtime could be removed and would free up ~4.5GB space.
The command given above may do that for you, or you may need to explicitly select each.
The command flatpak remove --help will show several possible options that can be used.
Thank you for the hints.
I tried several commands:
[11:54:04]\jojo@waldstadion:~$ flatpak remove --unused
Nothing unused to uninstall
[11:54:25]\jojowaldstadion:~$ flatpak remove --app org.freedesktop.Platform.GL.nvidia-575-64-05a-575-64-05
error: No installed refs found for ‘org.freedesktop.Platform.GL.nvidia-575-64-05’
[12:01:21]\jojowaldstadion:~$ flatpak remove --app nvidia-575-64-05a-575-64-05
error: No installed refs found for ‘nvidia-575-64-05’
So I was not able to delete/remove ‘nvidia-575-64-05’ which seems to be one of the old drivers. Any idea what might be wrong with my commands?
jojo@waldstadion:~$ flatpak remove org.freedesktop.Platform.GL32.nvidia-575-64-05
error: No installed refs found for ‘org.freedesktop.Platform.GL32.nvidia-575-64-05’
This is weird. On my system it works as it should - whenever the Nvidia driver is updated, flatpak update installs the new extension and removes the old one, I don’t see this buildup of old versions.
But from what OP is seeing here, it looks like the fix done (in flatpak 1.15.7 according to the Github ticket) doesn’t fix the issue on all systems.
great! I could remove now all ‘org.freedesktop.Platform.GL.nvidia’ execpt the newest nvidia-580-119-02 . This releases some GB of /var/lib/flatpak/. Thank you!
After that I recognized that 2 other directories on /var use about 5 GB in total:
/var/cache/akmods/nvidia
/var/cache/akmods/nvidia-open (uses 4.3 GB)
Any idea how I could remove some files of /var/cache/akmods/ ? Manually delete the ones of the old driver versions?
Have you tried to clean the dnf info sudo dnf5 clean all which would remove all the dnf cached data – packages, metadata, etc. – that are in /var/cache/libdnf5. Similarly the data in /var/cache/dnf could be cleaned with sudo dnf4 clean all. This is because dnf4 (and the software manager gui) use different cache paths than dnf5.
For /var/cache/akmods it seems that the older logs and locally built rpms are never automatically cleaned out (at least for the current fedora release version) so you certainly should be able to remove those for older kernels and drivers.
I used ls to see what was in /var/cache/akmods/nvidia/ and found 238MB of data in 40 files, half as the kmod rpm and half as the build logs, ranging from the first kernel of f43 while it was still in Beta to the most recent kernel and for all the driver updates during the same period.