I would want to know if it is possible to search packages in Fedora (using dnf) without it having to sync anything previously.
I've read Fedora wiki about rpm, but I don't think I understand properly the values of metadata_expire, metadata_timer_sync and dnf-makecache timer. The only thing I believe I understand is that dnf-automatic would be for managing downloads of packages (and also, if wanted, install them).
And that using cacheonly, if set to true, would make installations fail (sudo rpm install package_name) as it will not try to download any rpm files that weren't already in the cache.
I'll try to explain what I want to achieve:
- Being able to search for packages without sudo (so no typing my long password) and without it having to sync metadata previously... (I don't mind that this is a separate cache from sudo).
- When installing (therefore, with sudo) to update everything needed so it installs without errors the last version of any package.
In the first of the two "modes", if it has to work using cached info, ideally I would like to "automate", in some way, the act of updating that cache every "reasonable" time to do that (like once a day?) without manual intervention.
To try to explain myself better, I will try to describe the reasons why I want that:
I search to often for packages (because I don't use graphical software managers) and that waiting time of about 5 to 10 seconds so many times, is really annoying. I would like to experiment searching for packages on my terminal in a quicker way than opening a full web-browser and googling for it.
Thank you all! I am new to Fedora and I don't really know how I could get the package manager to behave in that desired manner, nor if it is possible.