13

I noticed that when I clean dnf's metadata and then run dnf upgrade to fetch new metadata and check for upgradeable packages multiple times, it tends to often download different amounts of data which sometimes result in one run not having any updates while the next run might do.

How can I fix this and always get the freshest (i.e. newest) metadata in dnf on Fedora (26)?

Screenshot of dnf after multiple runs

comfreak
  • 1,253

1 Answers1

21

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
Giacomo1968
  • 58,727
TomH
  • 3,262