There is also paccache.timer
that can be enabled which triggers paccache.service
on a weekly basis. It will then run/usr/bin/paccache -r
that is it “deletes all cached versions of installed and uninstalled packages, except for the most recent 3”. One can modify the command line used to suit one’s needs.
Yes, and it’s already installed on EndeavourOS by default (part of the pacman-contrib
package), but has to be manually started and enabled:
systemctl start paccache.timer
systemctl enable paccache.timer
I think it’s a good idea to do so, then you can forget about clearing the pacman cache.
I have installed pamac and it also has similar function ( pamac-cleancache.timer) enabled on install
You are right! It triggers /usr/bin/pamac clean --no-confirm
once a week. I am not sure however “how much” stuff will be removed by default. There is also a -k switch that can be used to define how many versions of each package to keep.
If I remember correctly, on Manjaro it left 3 versions of each package in the cache. I could be wrong.
I think you are right. It is then equivalent to paccache -r
.
Yep ! Also 3 versions is the default limit