I really like using the DNF package manager however I have one annoyance with it. Whenever I want to run an arbitrary install command, it randomly refreshes the repository cache.
For example, I might run "$ dnf install " and then it will either bring up the package instantly and prompt me to install “[y/N]” or it will update repositories and then prompt me to install. When it keep resolving the repositories, it makes installing basic packages a nuisance. The screenshot below shows what I mean.
Is there a way to make DNF behave like APT or pacman? It would be nice if it could only update repository caches once every 48 hours instead of doing it whenever I try to install a package.
Any help would be appreciated.