Re: What is DNF Check-upgrade Actually Doing

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

 



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


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

-- 
 
uname -rsvp
Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 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@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