Re: What is DNF Check-upgrade Actually Doing

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

 



On 25/11/24 09:58, Will McDonald wrote:
On Sun, 24 Nov 2024 at 22:21, Stephen Morris <steve.morris.au@xxxxxxxxx> wrote:
    1).    Why is it producing the messages "Updating and loading repositories:" and "Repositories loaded." with nothing between them which means that it didn't do anything? This functionality is independent of whether the command is issued under sudo or not.

This is what I see on a clean f41 Vagrant box:

[root@localhost ~]# yum repolist
repo id                                                                repo name                                                                              
fedora                                                                 Fedora 41 - x86_64                  
fedora-cisco-openh264                                      Fedora 41 openh264 (From Cisco) - x86_64
updates                                                              Fedora 41 - x86_64 - Updates

[root@localhost ~]# dnf check-upgrade
Updating and loading repositories:
 Fedora 41 - x86_64 - Updates                           100% |   6.9 MiB/s |   5.5 MiB |  00m01s
 Fedora 41 - x86_64                                            100% |  21.0 MiB/s |  35.4 MiB |  00m02s
 Fedora 41 openh264 (From Cisco) - x86_64     100% |   4.3 KiB/s |   6.0 KiB |  00m01s
Repositories loaded.
<snip bunch of packages that are liable for upgrade>

I would suspect that "Updating and loading repositories:" is checking the upstream repo metadata (if you've ever managed your own repos, this is the data created/updated by createrepo based on the RPM contents in the repo directory.)

This is the stuff you'll see like: https://fedora.mirrorservice.org/fedora/linux/development/41/Everything/x86_64/os/repodata/ those archives contain a lot of the pre-calculated RPM package dependencies (the requires/provides.)

Your local dnf will have its own cache of this metadata (unless this has changed significantly for dnf5) which is refreshed by default every 90 minutes. `dnf makecache` creates/updates this cache, `dnf clean` blats it causing subsequent runs to pull a new version of the cache.

Yes, but I would expect those messages to only be produced in the situation you have shown, where it actually did find something to do. If there is nothing to do I would expect those two messages to not be displayed and a message to the effect that the local environment was up to date.

regards,
Steve


Attachment: OpenPGP_0x1EBE7C07B0F7242C.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-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/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux