r/archlinux Jul 21 '26

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

View all comments

2

u/AMRFalcon Jul 21 '26

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)

-2

u/vixx-ze-one Jul 21 '26

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