Why Is /var/cache So Large on Linux

Find out what makes /var/cache grow and how Kudu can clean unnecessary cache files safely.

By Kudu Team

Fix this automatically with Kudu

Run a free system scan to detect and resolve this issue automatically — no manual steps required.

Download Kudu Free →

What Causes This?

/var/cache stores temporary data that Linux apps and system tools keep so they can work faster. Package managers like apt, dnf, and yum often save downloaded update files there, and some apps also build up thumbnails, metadata, and installer caches over time. If those files are never cleaned up, the folder can grow surprisingly large and start taking up valuable disk space.

Common Symptoms

  • Your Linux drive is low on space even though you have not saved many personal files
  • Disk usage tools show /var/cache using several GB of storage
  • Software updates fail because there is not enough free space
  • The system feels harder to maintain because storage keeps filling up again
  • You notice old package files and temporary app data piling up in cache folders

How to Fix It Manually

  1. Check how large /var/cache is

    • Open a terminal.
    • Run:
      sudo du -sh /var/cache
    • If you want to see which subfolders are the biggest, run:
      sudo du -sh /var/cache/* | sort -h
  2. Clean the package manager cache

    • On Debian or Ubuntu, remove downloaded package files with:
      sudo apt clean
    • To remove outdated packages no longer needed, run:
      sudo apt autoclean
    • On Fedora, RHEL, or CentOS, use:
      sudo dnf clean all
    • On older yum systems, run:
      sudo yum clean all
  3. Remove old thumbnail and application caches if needed

    • Check user-level caches with:
      du -sh ~/.cache
    • You can clear thumbnail cache with:
      rm -rf ~/.cache/thumbnails/*
    • Be careful not to delete random app cache folders unless you know what they do. Some apps will recreate them, but others may lose saved temporary state.
  4. Look for large cache folders inside /var/cache

    • Common examples include package metadata, font cache, and web proxy cache.
    • Review the biggest folders first:
      sudo du -sh /var/cache/* | sort -hr | head
    • If you find a specific app cache that is safe to clear, stop the related app or service first, then remove only its cache contents.
  5. Verify free space after cleanup

    • Check available disk space with:
      df -h
    • Then confirm the cache folder is smaller:
      sudo du -sh /var/cache
  6. Prevent the problem from coming back

    • Run package cache cleanup regularly after updates.
    • Uninstall apps you no longer use so they stop generating unnecessary cache files.
    • If a specific cache grows abnormally fast, investigate the related app for update or configuration issues.

Fix It Automatically with Kudu

If you do not want to inspect cache folders and guess what is safe to remove, Kudu can help automate the cleanup process. It scans for unnecessary cache files, identifies space-wasting leftovers, and helps you remove them safely without digging through system folders by hand.

Download Kudu Free →

Fix this automatically with Kudu

Run a free system scan to detect and resolve this issue automatically — no manual steps required.

Download Kudu Free →