hello, i’m having some problems clearing yay’s cache
first, I learn that yay has its own cache. I thought it was using pacman’s cache …
I discovered that yay’s own cache had reached 5 GB on my small disk.
Yet I was clearing it (or so I thought) regularly by using yay -Sc in my monthly cleanup script.
After some research, it seems that the yay -Sc command only works in interactive mode. As It didn’t get any response from me, my shell never cleared the cache, obviously…
Is there a way to clear the yay cache with yay in a non-interactive way? Or will I have to use pacman exclusively for this… As I also use the AUR repository, I couldn’t do without it completely…
thanks to you, I’ve seen this directory (thanks to the excellent ncdu :-), and rm, that’s what I would have done.
strange that yay has its own cache and only acts interactively with this option. I’ll change my shell, I thought it was all in the pacman cache, unless yay’s cache only contains AUR-related packages? Didn’t look.
You are pretty much doing the same things with both commands. The yay directory will simply be newly created if needed. Sudo is not needed inside the users home directory.
ok, i thought yay wouldn’t be recreated, what contains this directory ? It this juste for AUR builds works ?
Sudo is not needed inside the users home directory. indeed but it follows a snapper + upgrade commands which must be run with sudo so therefore rm inherits the sudo in this case, sorry for this misunderstand…
@anon26269396 seems to be a good idea if nothing critical/essential in that dir…