Re: Java Dev Group and Fedora Quality

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27/01/2020 12:01, Adam Williamson wrote:

I don't know in detail how apt works, but IIRC (sorry if I'm wrong), in
a previous discussion of this it's been suggested that the difference
is apt doesn't refresh this data unless you explicitly ask it to, while
dnf does automatically refresh it on most operations, depending on a
refresh time specified in the repository configuration (this is several
days for mostly-not-changing repos, but more like a few minutes or
hours for update repos which change frequently).

Yes update (refresh metadata) and upgrade (update packages) are
separate operations with apt.

Even the updates repository has a 6 hour refresh interval in F31 though
so it shouldn't have to refresh every time - the base repository has
a 7 day refresh interval.

A refresh initially only checks the top level repomd.xml though, which
is tiny - it will only carry on and fetch other things if they appear to
have changed.

I wonder if Bill is running dnf as a normal user rather than as root
so that it is using a per-user metadata cache that will have to be
created if it doesn't exist yet. Running as root, even for operations
like list that don't really need it, is generally better as it can
use the shared system cache.

You should be able to use --cacheonly to stop it refreshing, or indeed
use --refresh to force a refresh. Using --cacheonly will also make it
use the system cache even when running as a normal user.

Tom

--
Tom Hughes (tom@xxxxxxxxxx)
http://compton.nu/
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux