Major Cleanup Targets
| Path | Description |
|---|---|
/var/lib/flatpak | Flatpak apps & runtimes |
/var/log | System logs (journald) |
/var/spool/abrt | Crash dumps |
/var/lib/docker | Docker data |
/var/cache | Package caches |
Fixing Full / Root Partition on Fedora
If your root (/) partition is nearly full but /home has plenty of space, follow these steps to clean up and free disk space.
📊 Quick Stats Example
$ df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fedora-root 49G 46G 682M 99%
âś… Step-by-Step Cleanup
1. Check What’s Taking Space
sudo du -ahx / | sort -rh | head -n 30
This shows the top 30 space consumers on the root filesystem, excluding mounted ones like /home.
2. Clean DNF/YUM Cache
sudo dnf clean all
3. Remove Old Kernel Versions
List installed kernels:
rpm -q kernel
Remove older versions (keep the latest 2):
sudo dnf remove kernel-<version>
4. Vacuum Journal Logs
Check journal size:
sudo journalctl --disk-usage
Reduce journal size:
sudo journalctl --vacuum-size=500M
5. Remove ABRT Crash Dumps
sudo rm -rf /var/spool/abrt/*
These are crash reports, safe to delete if you don’t need diagnostics.
6. Flatpak Cleanup - Optional
If NOT using Flatpak apps:
sudo flatpak uninstall --unused
sudo rm -rf /var/lib/flatpak
7. Podman and Docker Cleanup
To remove all unused Docker data:
docker system prune -a
# or
podman system prune -a
⚠️ Make sure you don’t need the old images/containers.
Disclaimer: Views expressed in articles are those of the respective authors and do not necessarily reflect the views of their employers or this site. While we aim for accuracy, please verify information before relying on it, and let us know if you spot an error.