On 11/25/24 1:49 PM, Stephen Morris wrote:
On 25/11/24 18:42, Samuel Sieb wrote:
On 11/24/24 2:04 PM, Stephen Morris wrote:
I have to questions around what that command is doing.
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.
If it hasn't been long enough since the last time it checked the
repos, then it just loads the cached data. You can override that with
the refresh option to force it to check.
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 don't use sudo, then it saves the cached data somewhere that
your user has access to. I don't know where that is, but why would
you want to do that anyway?
I'm not explicitly doing it, it's just that sometimes I forget to use
sudo and dnf then goes off and does whatever it does for this command
instead of prompting that it needs sudo to function, like some other
software does.
It doesn't need root access until it's affecting the system state. As a
user, you can query the repos and download packages, but no install or
remove.
--
_______________________________________________
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