4 ms·
Ah, but 'dnf install' does also what 'apt-get update' does when necessary. So, dnf is faster for me than 'apt-get update && apt-get install'. I think there is a
by smarx007 5y ago
Ah, but 'dnf install' does also what 'apt-get update' does when necessary. So, dnf is faster for me than 'apt-get update && apt-get install'. I think there is a flag you can alias to force disable updating repos. Though the delay is rare for me.
- mroche 5y agoThe flag you're thinking of is '-C | --cacheonly'. It is very useful for doing stuff like 'dnf [search|rq|list|etc...]', but it is not allowed with upgrade/install type runs. dnf will do a check when running subcommands like 'install' to see if it _needs_ to update the cache data (as you noted), it won't always do it. There are a few factors that play in, but you can also adjust the cache expiry time in dnf.conf.