Computer Tips - Linux: How to free-up some disk space

Date: 2010oct8 Update: 2026oct1 OS: Linux Q. Linux: How to free-up some disk space A. Package installer clean The first thing to do is to remove the package installer's temporary files. On Fedora:
dnf clean all
On Debian-based:
apt clean
Journal You can reduce the size of the journal (system log). See how much space its currently using:
journalctl --disk-usage
Example output:
Archived and active journals take up 2G in the file system.
Then reduce it. Put the size you want the journal reduced to here:
journalctl --vacuum-size=100M
BleachBit Try BleachBit. It can remove languages you aren't using and many other things. Debian users have localepurge but BleachBit does more. Install it with:
dnf install bleachbit
And run the GUI from X Window as super user:
# bleachbit &
Remove the GUI If you are desperate for space, you can remove the GUI! If you are using GNOME, these commands will remove it and all its dependencies (which is a lot). I have done this for an OS update in a space-restricted VM. After the update and an `apt clean` I reinstalled GNOME. Fedora:
dnf remove gnome-session
Debian-based:
apt remove gnome-session