Re: What is DNF Check-upgrade Actually Doing

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

 






On 26/11/24 09:05, Will McDonald wrote:
On Mon, 25 Nov 2024 at 21:46, Stephen Morris <steve.morris.au@xxxxxxxxx> wrote:
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.

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.)
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.

So if I understand you then, your primary concern here is the semantic accuracy of the messages?

> Updating and loading repositories
> Repositories loaded.

And you would rather something like:

Scenario: DNF Cache Outdated
> Checking repositories cache status
> Cache out-of-date, updating from upstream repositories
> Repository cache updated

Scenario: DNF Cache Current
> Checking repositories cache status
> Cache current, nothing to see here.

(Or whatever.)

You might want to take this to the upstream project, maybe submitting a bug report, documentation improvement, or PR if you feel particularly invested?

https://github.com/rpm-software-management/dnf5/discussions
https://github.com/rpm-software-management/dnf5/issues

Thanks Will, I will consider doing that. I was more looking for a message like "Repositories up to date, nothing to do" as other software I've used does.
With the explanation of what dnf is doing, if an end used runs the dnf clean command with whatever obligatory sub-command they chose will their repositories lose all knowledge of what packages have been updated, or will dnf update/upgrade refresh that data irrespective of whether --refresh is specified or not?

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