SystemRequires admin/root

DNF Package Cache

DNF stores downloaded RPM packages, repository metadata, SQLite metadata caches, and transient solver data under /var/cache/dnf so it can resolve dependencies quickly and avoid re-downloading content during installs and upgrades. Over time, old package payloads, expired repodata, and fragmented local metadata caches can accumulate after repository changes, interrupted transactions, or repeated updates. Kudu removes these cached RPMs and metadata files while leaving installed packages, enabled repositories, system settings, accounts, and passwords untouched.

Why clean DNF Package Cache?

  • Expired or mismatched repository metadata can make dnf show 404 errors or checksum failures during dnf update until the local cache is rebuilt
  • Old cached RPMs from previous upgrades can consume several gigabytes in /var/cache/dnf, which users notice as unexpectedly low free space on the root filesystem
  • A partially downloaded package left behind after a cancelled or interrupted transaction can trigger repeated download retries or package verification errors on the next install
  • Stale local metadata after a repository rename, mirror switch, or modular stream change can cause confusing dependency resolution failures and 'nothing provides' messages
  • Corrupted SQLite metadata caches can slow package searches and repo refreshes, making dnf search or dnf makecache feel unusually sluggish before they regenerate
  • SQLite page fragmentation in local metadata databases can waste disk space and hurt read efficiency; rebuilding the cache effectively performs the same kind of rewrite as VACUUM without deleting installed package records
  • Large accumulations of obsolete cached packages make automatic updates and manual maintenance harder to audit because /var/cache/dnf keeps old payloads long after they are no longer needed
What gets cleaned

Cache paths Kudu targets

Linux

/var/cache/dnf
Frequently asked

Common questions about DNF Package Cache

Free & open source

Download Kudu and reclaim your disk space.

Available on Windows, macOS, and Linux. No account required, no feature gates, no telemetry without consent. All cleaning targets are open source and community-auditable.