On Tue, 2022-10-11 at 08:38 +0100, Barry wrote:
> I guess this is a hang over from yum days. The problem I assume is
> how to update to the latest packages?
> 
> With yum the yum clean all is required to get the latest meta data
> for the yum update.
> Today you can use dnf update —refresh to get the latest meta data for
> your update.

It was never required to do a clean all.  A "yum update" or "dnf
update" was all that was ever required.

When you use yum or dnf the first thing it should be doing is looking
at the age of its cached data, if too old refresh it, but otherwise
don't.

Next it should compare its metadata against the repo's.  If they are
the same (which is not downloading all the data and comparing it, but
is done by comparing the metadata about the metadata), then don't
refresh.

It's the same process as browsing websites.  Cache handling is
automatic and done in the background.  You only need to do reloads and
cache purges when something goes wrong.

Caching is done to reduce the amount of internet traffic (on all the
servers, and you).  There's an awful lot of people using internet
servers, we should be conservative in their use, it's not without
consequences to be careless.

Telling people to *always* do a clean all (and other flushing options)
was stupid advise that some people promulgated ages ago.  You should
only have to do that when something went wrong (e.g. your computer
crashed in the middle of doing something with yum or dnf).

It's the same kind of people that pushed that idea that also advise
people that the first thing to do with your installation is turn off
the firewall and SELinux.  And I also have concerns that those people
have ulterior motives, rather than just being dense about things, they
might want to make it easier to hack everyone.
 
-- 
 
uname -rsvp
Linux 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to