Paul Smith composed on 2023-04-30 15:23 (UTC+0100):
I am trying to use
dnf system-upgrade download --releasever=38
to upgrade from F37 to F38. However, I am getting this error:
------------------------------
---------
Error Summary
-------------
Disk Requirements:
At least 4020MB more space needed on the / filesystem.
---------------------------------------
Any ideas?
This happens to me often, though not to such degree. Until dnf makes the report, I
don't know how much it needs.
First thing to do is get rid of trash. If you move things to "trash" rather
than
deleting, and /home isn't on its own filesystem, it's the logical place to start.
Next, clear /var/tmp/ and /var/log and anyplace else you might have unneeded
oldies. /var/log/journal/*/ may have a lot of ancient logs that serve no purpose.
You can configure excess for autoremoval via /etc/systemd/journald.conf. Whatever
is in /var/cache/dnf/ you should no longer need and can remove with dnf clean.
Next, I use an upgrade initialization mini-script to get package management
upgrades in place before continuing with the rest. It contains:
dnf upgrade --releasever=38 dnf* rpm* libsol* glib* systemd* fedor* dracu* hawk*
Lastly, locate the largest downloaded rpms and install selected biggies manually
using rpm -Uvh --nodeps. Among them are typically graphics firmware, wallpapers,
themes & icons, but there are generally some obese others that are perfectly safe
to upgrade whilst operating in multi-user mode, anything to do with X, *office,
web browsing, etc. After each such upgrade, delete the rpm from the cache. To
facilitate the process, navigate to the cache directory using MC. Pretty much
anything whose size MC shows with a K or M is candidate to start with. Once you've
created however much space dnf reported you need has been freed, finish with dnf.
Another option I often use for system-upgrade is attaching an extra filesystem to
/var/lib/dnf/system-upgrade before beginning, a pretty good guarantee against lack
of freespace. If you've already downloaded most and they're on /, find a place to
move them that isn't, and mount that to /var/lib/dnf/system-upgrade before
proceeding with another dnf system-upgrade download attempt. Don't forget to add
the location to /etc/fstab before running dnf system-upgrade reboot.
--
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