On 27/11/24 14:19, Samuel Sieb wrote:
On 11/26/24 1:38 PM, Stephen Morris wrote:I checked this out as well, there is a dnf-* directory owned by me in /var/tmp but it is not maintained by the current dnf. Issuing dnf clean all, not under sudo, removed 142 files, 75 directories with 0 errors, but it did not remove the directory in /var/tmp.
On 26/11/24 11:32, Samuel Sieb wrote:
On 11/25/24 1:49 PM, Stephen Morris wrote: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.
On 25/11/24 18:42, Samuel Sieb wrote:
On 11/24/24 2:04 PM, Stephen Morris wrote: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.
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?
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.
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.
This folder may not be a folder created by dnf, as the format is dnf -<my user name>-<entry> where "entry" doesn't look to be a hash, as for me "entry" is "erpyrkri".
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