On 28/11/24 20:08, Samuel Sieb wrote:
On 11/27/24 1:35 PM, Stephen Morris wrote:
On 27/11/24 14:19, Samuel Sieb wrote:
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.

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

It won't remove the top-level directory, just like it won't remove /var/cache/dnf when you clean as root.
I've just checked this folder and the dnf clean all didn't remove the contents of the folder, and it looks to be info for all the repositories I have. It may have been created when I had the python3-dnf-plugins-local package installed as one of the sub-folders is prefix by _dnf_local_, hence I'm surprised dnf clean all didn't remove the contents, although dnf5 doesn't put is cache in that folder so what I'm seeing may not be a surprise to other people, hence the /var/tmp folder may have been created by dnf4. I can delete the folder manually, but is this sort of thing normal when upgrading from say F40 to F41?

regards,
Steve


Attachment: OpenPGP_0x1EBE7C07B0F7242C.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to