On Mon, Mar 25, 2024 at 4:59 PM Vít Ondruch vondruch@redhat.com wrote:
Previously, I had issues that migration from DNF4 to DNF5 left a lot of data in /var/cache. How is this going to be addressed? I don't think it is fair to leave those behind and waste disk space for regular users.
Are you suggesting the dnf(4) should have an additional stanza in the %postun scriptlet something of the form (following not tested, validated, or run, just prototype):
if [ -d /var/cache/dnf && "$1" -eq "0" ] ; then rm -r /var/cache/dnf || : fi
?