I have multiple F41 installations system-upgraded from F40, upgraded from F39,
etc., and a few of F42 from F41. Now with DNF5 operational, is there any reason in
F41+ for /var/cache/dnf/ to continue to exist? It has multiple files of
considerable size.
I would think you could get rid of them but until you get a more definitive answer, you can clean them out with:
sudo dnf4 clean all
That should clean out all the old dnf4 cruft.
It also looks like there may be both dnf4 and dnf5 files in /var/lib/dnf. It would be interesting to know if any of those can be deleted. Plus there are log files for both dnf versions in /var/log.