You are not logged in.
Pages: 1
So I see that my / keeps filling up, and is now at 93% full and climbing. This is because of updates downloaded by pacman, as I dont download or create big files otherwise on the filesystem. How can I clean up or keep this space under control so that I don't end up with a completely full root folder? What are good practices for this?
Last edited by 7thSon (2017-08-18 05:56:30)
Offline
You just delete packages you deem unnecessary from the cache?
You could conduct a find to only delete files older than a certain time or whatever - there's no best practice.
After a "major" update I wait for the next reboot, ensure that I still got network and then just nuke the pacman cache. If I really ever feel like I need older package versions later on, I'd fetch them from the archives.
Offline
You could create a pacman hook that calls the required paccache commands after every update.
Edit - I knew I'd seen it somewhere...
https://bbs.archlinux.org/viewtopic.php … 3#p1694743
Last edited by Slithery (2017-08-12 11:29:12)
Offline
I'd start with using paccache to leave in place all but the current versions and one more of all packages.
# paccache -rk 1Then evaluate how much that helped and see if you need to look elsewhere for space.
Simple and Open
Offline
Thanks!
paccache -rk 1This just recovered 5GiB of space on my root partition, so now I'm back to pretty reasonable levels.
Offline
I'd start with using paccache to leave in place all but the current versions and one more of all packages.
# paccache -rk 1
Your advice doesn't match your command. To acheive that you should be using -rk2 not -rk1. -ruk0 is also useful to get rid of all cached packages that are no longer installed.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Your advice doesn't match your command. To acheive that you should be using -rk2 not -rk1. -ruk0 is also useful to get rid of all cached packages that are no longer installed.
Thanks for picking me up!
Simple and Open
Offline
Pages: 1