DNF5-CLEAN(8)
β¨ DNF5-CLEAN β the clean command, bestie edition β¨
okay so this is dnf5-clean, and it's part of the dnf5 manual set π if you're the kind of person whose /var/cache is giving hoarder energy, this is literally the page for you.
πΈ NAME πΈ
dnf5-clean β the Clean Command. that's it, that's the name, slay π
π SYNOPSIS π
dnf5 clean [options] <cache_types>...
π§ DESCRIPTION π§
so the clean command in DNF5 exists to delete temporarily kept repository metadata or to mark the cache expired. it's the "bestie, we need to talk about your cache" command π«Ά
the arguments you hand it in cache_types tell it which kinds of cached data to clean up:
allβ Delete all temporary repository data from the system. all of it. every crumb. π§Ήpackagesβ Delete any cached packages. bye πmetadataβ Delete repository metadata. This will delete the files which DNF5 uses to determine the remote availability of packages.
Using this option will make DNF5 download all the metadata the next time it is run. not a vibe check, it's a fact check π
dbcacheβ Delete cache files generated from the repository metadata. This forces DNF5 to regenerate the cache files the next time it is run. fresh start, main character energy β¨expire-cacheβ Mark the repository metadata expired. This forces DNF5 to check the validity of the cache the next time it is run. lowkey the gentlest option here ngl πΈ
π EXAMPLES π
dnf5 clean allβ Cleanup all repository cached data. the full reset button π₯dnf5 clean packages dbcacheβ Cleanup all cached packages and dbcache metadata. two birds, one command, iconic π
π Author π
See AUTHORS.md in dnf5 source distribution. the whole squad is credited there π«Ά
π Copyright π
Contributors to the dnf5 project.
and that's the whole page bestie π this came straight out of the dnf5 source, dated Sep 24, 2026, no cap β go forth and clean responsibly β¨π
π¦ where this page comes from
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms