Auto cache removing

Hi
Recently I need to clear almost 30 gb of cache, with the command

sudo pacman -Scc

would be nice a hook or auto cache cleaning built-in with garuda
thank you

You can make a hook for it. I did it when I mained arch.

https://wiki.archlinux.org/title/Pacman#Hooks

I think i set it up with, paccache -rk 1

4 Likes

A complete sample solution on forum by BluishHumility

5 Likes