The "defaults" in use_default_location here are the dnf4 defaults, not the dnf5 defaults, so let's update them. Also, for dnf5, we need to set system_cachedir instead of cachedir - see https://dnf5.readthedocs.io/en/latest/misc/caching.7.html , system_cachedir is the cache location used when running as root, cachedir is the cache location used when running as a regular user.
The "defaults" in
use_default_location
here are the dnf4 defaults, not the dnf5 defaults, so let's update them. Also, for dnf5, we need to setsystem_cachedir
instead ofcachedir
- see https://dnf5.readthedocs.io/en/latest/misc/caching.7.html ,system_cachedir
is the cache location used when running as root,cachedir
is the cache location used when running as a regular user.