Re: What is DNF Check-upgrade Actually Doing

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

 



On 25/11/24 22:43, Tim wrote:
On Mon, 2024-11-25 at 09:04 +1100, Stephen Morris 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.
There are probably various things it can do that don't produce any
individual progress status.  Just a did this, did that, and this...

When you fire up dnf, it is going to load data, some of it will be
local, some of it may be fetched from the WWW.

If you want to look for differences.  Purge your dnf cache, do a dnf
update (check for updates), watch what happens.  Say no and abort.  Do
another dnf update moments later, and see how it operates from cached
data (what progress info you see as it does its thing).
I'm just issuing this command to see if there are actually any updates to be applied rather than having dnf upgrade tell me there is nothing to do.


    2).    When it does list repositories between the two messages,
what is it actually doing when the command is not issued under sudo,
particularly when issuing the command lists the two updates
repositories and then issuing it again immediately after produces
nothing between the two messages?
If you do a dnf <anything> as a normal user (e.g. look to see if some
package exists, or info about it, or if there's any updates, etc),
it'll have to get data from the remote server because the info it
previously got as a root user isn't available to it.

If you then do it as root (whether sudo, or su), it's going to have to
get the metadata again, because the data it fetched and cached as an
ordinary user isn't available to it.

Yes, I've occasionally done a dnf search httpd (for example) as an
ordinary user, because I couldn't be bothered typing in a password with
sudo.  But then, if I do want to download and install something, I'm
going to have to do that, anyway.  So there's little advantage in it.
I assumed that when dnf retrieved it's metadata it was updating the standard system locations which a normal user can't update, I didn't know it was caching the data elsewhere. I'll need to do some more checking tomorrow, but I thought I have been in the situation where dnf check-upgrade loaded metadata and then sudo dnf check-upgrade said there was nothing to do.

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