With every command of dnf5 it loads and updates repositories and displays the text as follows:
$ dnf search feh
Updating and loading repositories:
Repositories loaded.
Matched fields: name (exact)
feh.x86_64: Fast command line image viewer using Imlib2
How can I stop this extra text from displaying and the repositories should be updated only once daily.
The dnf commands acessing repo metadata will check with every such command if metadata refresh is needed, according to the metadata_expire variable in the specific repo’s config files (located in /etc/yum.repos.d/). Some have a 6h refresh interval, others more.
The second line from your output shows that a check was made whether repositories needed to be updated, and the third line shows that such an update didn’t take place, as otherwise the progress and details of such repo metadata download would be presented.
In the followinw, if I change the value of metadata_expire for fedora-updates.repo and fedora-updates-testing.repo to 7d, will I still get the message?