Root partition is full, can't upgrade

Hello,

I can’t upgrade Netrunner anymore because my 20GB / partition (separated from /home) is full.
While I have installed some new kinda big packages over a new install, it’s seems like a lot, especially since I think I remember having lots of space left not that long ago.

Is there some kind of cache or leftover files that could cause this?
Or if it’s normal given what I have installed, is there a way to see what is consuming what?

My usage in case it helps.

$ sudo du -sh /* | sort -h -r
du: cannot access ‘/proc/21708/task/21708/fd/3’: No such file or directory
du: cannot access ‘/proc/21708/task/21708/fdinfo/3’: No such file or directory
du: cannot access ‘/proc/21708/fd/3’: No such file or directory
du: cannot access ‘/proc/21708/fdinfo/3’: No such file or directory
du: cannot access ‘/run/user/1000/gvfs’: Permission denied
13G     /home
11G     /usr
9.5G    /var
246M    /opt
76M     /etc
59M     /root
39M     /boot
1016K   /run
828K    /dev
44K     /tmp
20K     /kde-image-pkgs.txt
16K     /lost+found
12K     /srv
8.0K    /root-image-pkgs.txt
8.0K    /mnt
8.0K    /.config
4.0K    /.wh..wh.plnk
4.0K    /.wh..wh.orph
4.0K    /media
0       /.wh..wh.aufs
0       /sys
0       /sbin
0       /proc
0       /lib64
0       /lib
0       /default
0       /bin

Thanks.

You could have a look at the pacman cache in /var/cache/pacman/pkg/ which keeps around all the packages you have ever downloaded. It is good to clean it every now and then and from your list it seems /var is quite big.

pacman -Sc

However, it will remove all packages downloaded except that latest one that is installed, so be sure you don’t need to downgrade any package.

It was enough to upgrade at least, though I’m not really sure how I will deal with this in the future as my SSD is rather small and I can’t make it much bigger.

Thanks anyway!

Yep same here smaller / and separate /home. And always started to get down to less than 1gb. The secret for me was clean out and delete everything in root var/cache/pacman folder. That is where the download packages go. And fine to delete them once the upgrade is completed. As they are not automatically deleted after upgrades.

.

You can Install the new octopi cache cleaner plugin for a GUI to this if you like, there is also a new repository editor plug in as well:

sudo pacman-S octopi-cachecleaner octopi-repoeditor

If you still have the live media, you can boot it up and re-size your partitions using gparted or partitionmanager to make more room on that partition.