Back to tips

Step-by-step guide

Clean package cache weekly

Recover disk space by cleaning package cache and removing stale dependencies.

Time: 4 min Updated: 2026-04-01 Keywords: apt autoremove dnf clean all

Why this helps

Package managers keep downloaded files and old dependencies. Cleaning them regularly reclaims storage and can reduce package conflicts on small SSDs.

How to verify

Compare free disk space before and after. You should see extra free GB and no broken package errors in software updates.

Steps

  1. Check current cache usage in your package manager.
  2. Run cache cleanup and remove orphaned packages.
  3. Reboot only if major packages were removed.
  4. Repeat once per week or after large updates.

Related tips