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/cacheusing 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
-
Check how large
/var/cacheis- 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
-
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
yumsystems, run:sudo yum clean all
- On Debian or Ubuntu, remove downloaded package files with:
-
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.
- Check user-level caches with:
-
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.
-
Verify free space after cleanup
- Check available disk space with:
df -h - Then confirm the cache folder is smaller:
sudo du -sh /var/cache
- Check available disk space with:
-
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.
Fix this automatically with Kudu
Run a free system scan to detect and resolve this issue automatically — no manual steps required.
Download Kudu Free →Related guides
How to Fix a Home Folder That Is Too Large on Linux
Reduce home folder bloat on Linux by cleaning cache, downloads, and leftovers with Kudu.
How to Clean Up Large Journal Logs on Linux
If journal logs are taking too much space, Kudu can help clean them safely and reclaim disk storage.
How to Remove App Cache on Linux
Clean application cache on Linux to recover space and reduce clutter using Kudu.
How to Fix Apps Opening Slowly on Linux
If Linux apps take too long to open, Kudu can help clean caches and reduce system clutter.