Arch root partition is full, how to clean it up?

Tw1@lemmy.roembol.nl to Linux@lemmy.ml – 26 points –

After installing pacman packages (last one was 'ungoogled-chromium') my root partition of 20GB is completly full. Now I can't update new packages.

My partition structure is: root (20GB) /home (470GB) swap (10GB)

How can I delete the garbage that is piling up in my root, and how to prevent it from happening again.

33

You are viewing a single comment

This realy helped my out. /var/cache/pacman took up over 5GB of space in my root partition. To prevent this from happening again, is there a way to move pacman cache to my home partition where I have over 300GB of space for pacman to consume?

I'm not currently using Arch so I can't test, but from this forum post it looks like you can change the CacheDir variable in /etc/pacman.conf to point anywhere you want.

Could you create a new partition out of that 300 for /var?