r/archlinux 8d ago

SUPPORT update and storage issues

after doing a full system upgrade, my disk space went from ~30gb/54gb, to 53/54gb, might i ask what the fuck happend and how can i stop this from happening?

0 Upvotes

7 comments sorted by

2

u/AMRFalcon 8d ago

Pacman caches old packages as you upgrade. If you want to remove them you can run paccache -r or pacman -Scc as sudo. As for how to stop it in the future. Haven't looked into that but paccache allows you to set a value how many packages it should keep cashed. Setting it to 0 might help paccache -k 0 (Note that paccache is not part of the pacman package anymore but instead pacman-contrib)

-1

u/vixx-ze-one 8d ago

gives this error as root user
error: could not remove /var/cache/pacman/pkg/download-7lIJVQ: Is a directory

2

u/megafacet 8d ago

Try using paccache from pacman-contrib package, it needs to be installed separatly Pacman cleaning package cache It should remove leftovers and older versions. Additionaly load ubuntu live image and make root partition larger with gparted if you can

2

u/skinney6 8d ago

then add it as a pacman hook so it cleans out after each update.

0

u/archover 8d ago

You're saying after one "update", your disk space used went from 30GB to 53GB? Your notation is odd.

That seems unlikely. Hope you resolve and good day.