On Sat, Aug 08, 2015 at 02:23:34AM +0000, Andreas M. Kirchwitz wrote:
Suvayu Ali <fatkasuvayu+linux(a)gmail.com> wrote:
>> I hope this will be done *fast*, because I have to "clean all"
>> *everytime* checking for updates. Otherwise, no updates are shown, even
>> though they exist. This is a major bug.
>
> I'm sorry but "clean all" is not necessary at all! "clean
metadata" or
> "clean expire-cache" should be sufficient.
In practice, there's not much of a difference between "clean all"
or just "clean metadata". Because both require the update/upgrade
command to download all stuff from the network and build to whole
meta database from scratch, even if that wouldn't be necessary.
Sorry, that's not correct. Ever since the yum days, they have been
different. The key differences are these two bits (from `man dnf'):
[...]
dnf clean packages
Removes any cached packages from the system.
dnf clean plugins
Tells all enabled plugins to eliminate their cached
data.
dnf clean all
Does all of the above.
By removing packages, you are losing the ability to do offline
transactions. Cleaning cached data from plugins, can do any number of
things depending on the enabled plugins. So please stop repeating this
obviously incorrect information.
> That said, I sometimes do not understand what's the harm in
getting
> updates few hours later.
Caching might be cool for automated tasks (eg, cron jobs or background
processes) and also for some actions that do not require up-to-date
metadata.
During the yum days, the most frequent complaint on this list were: why
is yum so slow, I hate waiting for metadata updates, .... and so on.
And now people complain, the cached metadata is out of date (please
don't confuse this with actual bugs). There is no winning, you either
wait for the metadata to download, or you get a responsive interface.
PS: I've no relation to the dnf team, just a user. I however think
instead of complaining on the list, if any discussions here lead you
to think there is a problem with dnf (as in a bug), you should file
bug reports.
--
Suvayu
Open source is the future. It sets us free.