EOS clean up script to free disk space

Sharing my cleanup script for those using paru. Removes orphaned packages, plus various caches:
go, rust, npm, spotify. Contributions / ideas are welcomed!

1 Like

Maybe cleaning package cache from old packages?

sudo paccache -rk1   # 1 keeps the latest only

Or the script could ask how many package versions to keep?
(For poor internet connections it may be useful to keep at least one…)