Bug 2395810
| Summary: | legacy /var/cache/dnf still exists, contains files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Chris Murphy <bugzilla> |
| Component: | dnf | Assignee: | rpm-software-management |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 43 | CC: | daniel.mach, jmracek, jonathan, jrohel, mblaha, packaging-team-maint, pkratoch, ppisar, rpm-software-management |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-09-16 14:53:57 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Chris Murphy
2025-09-16 14:33:47 UTC
/var/cache/dnf is used by DNF4 (python3-dnf package). Regarding removing its content, it could be done when uninstalling python3-dnf with a postun scriptlet. But there is a problem that DNF4 has no idea which files there were created by DNF4 which files were saved there by someone else. In RPM world, the "best" practice is not to touch files the RPM package does not own. I.e. keep the cruft there for system administrator's discretion. AFAIK in the past there was (unrelated to DNF) cron job which scanned /tmp and removed long time unused files. That cron job would the best solution for these cache files. But I worry it does not exist anymore. *** This bug has been marked as a duplicate of bug 2221663 *** |