Get freshest metadata in dnf on Fedora
Solution 1:
Just run dnf clean expire-cache
first to make sure it validates the cache before using it or, even better, just add --refresh
to your command because, as the manual page says:
--refresh
set metadata as expired before running the command