Flexible yay cache cleaning similar to paccache.
Usage is essentially the same as with paccache.
See man yaycache
for more information, or view the docs here.
You can use yaycache-hook
package (similar to paccache-hook
) to automatically run yaycache
with
configurable arguments after your pacman
transactions.
yay -S yaycache-hook
The configuration is stored in /etc/yaycache-hook.conf
.
An optional systemd service is included that will run weekly:
systemctl enable --now yaycache.timer
An AUR package is available:
yay -S yaycache
You can build the package yourself:
./autogen.sh
./configure --prefix=/usr
make
make check
make install DESTDIR="$pkgdir"