On 11/26/24 1:38 PM, Stephen Morris wrote:
On 26/11/24 11:32, Samuel Sieb wrote:
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.
My assumption was that when it said it was refreshing and loading the
repositories that it was doing that in the system state, it wasn't until
I queried what it was doing that I got the info that there is a current
user interface to that functionality.
Which then begs the question, if I issue the command "sudo dnf clean
all" which cleans out the system state, does it also clean out the
current user's data if it exists as well, or do you have to issue the
command not under sudo as well for that to happen?
If you run it under sudo, it has no knowledge of a user running it. You
will have to do the clean as the user if you want to do that.
Apparently I did test this at some point because there's a dnf-*
directory owned by my user in /var/tmp.
--
_______________________________________________
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