DNF5-CLEAN(8)

πŸ“¦
version 5.4.6.0 Β· 4 versions
, in fedora 44

✨ 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 🫢


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