Terry Hurlbut composed on 2024-11-10 06:23 (UTC-0500): > I have a problem upgrading to Fedora 41. After I download all the > packages and import the keys, it's telling me I need around 5 GB more > space on the / filesystem. The / system is on a partition that has only > 50 GiB total, and 395.2 MiB free. (I use the GiB and MiB symbols > deliberately.) Specifically it says I need to find 4437 MB on that > system. If I have to repartition, I understand that I might as well do a > fresh install. My data is safe enough - it's on a completely different > physical device, mounted as /crypt - and another petition on the "root > device" is present with 47.4 GiB free (there's nothing on it but the > contents of /home). But I can't remember half the stuff I installed from > non-core repositories like rpmfusion, and if I have to install from > scratch, I'll lose a lot of applications. (The kernels are on /boot, > which is a 1.0 GiB partition that has more than 500 MiB free.) How can I > free up that extra space (say, 5GiB for good measure) without having to > reformat the root device for a fresh install?
This is an expected consequence of filling a filesystem with packages before installing any, and deleting none before installing all. It tends to destroy filesystem efficiency via massive fragmenting. This has happened to me often. I deal with it via rpm. Goto your cache directory with the most rpms in it after logging in as root in multi-user.target. Long list the files by size, smallest first. Use rpm to force upgrade (rpm -Uvh --nodeps) the largest rpm that is not in use while in multi-user.target. This will usually be something related to your DE or X, such as themes, icons, fonts, wallpapers, X/Wayland components and such, or LibreOffice, GIMP, or web engines/browsers, then remove that rpm and check freespace. Once freespace reaches the value reported to be needed by dnf, do one more, then you can expect to finish normally using dnf. If you start with the biggest rpm and get a not enough space response, choose some less huge rpm(s) to start with. If a kernel rpm group is among your cached packages, you can probably add kernel* to your excludes= line in /etc/dnf/dnf.conf, move the kernel rpms to some other filesystem, do the upgrade, dnf clean packages, move kernel rpms back to cache, remove kernel* from dnf.conf, then do dnf upgrade once more to complete the upgrade. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata -- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue