966 B
966 B
Checking and cleaning packages and package cache in Parabola GNUlinux
Check the number of packages in cache
Based on this link and on Arch linux Wiki
Open a terminal and run the code
sudo ls /var/cache/pacman/pkg/ | wc -l
6000 |
Check space used by packages (cache)
du -sh /var/cache/pacman/pkg/
7,3G | var/cache/pacman/pkg |
Remove packages in cache, keeping one version (last)
paccache -rk1
==> finished 1146 packages removed (disk space saved: 4.04 GiB) |
Remove all of uninstalled packages in cache
paccache -ruk0
…90.88 Mib
pacman -Sc