Package Details: yaycache-hook 0.1.0-1

Git Clone URL: https://aur.archlinux.org/yaycache-hook.git (read-only, click to copy)
Package Base: yaycache-hook
Description: A configurable hook to cleanup the yay package cache using yaycache
Upstream URL: None
Licenses: MIT
Submitter: aokellermann
Maintainer: aokellermann
Last Packager: aokellermann
Votes: 4
Popularity: 0.97
First Submitted: 2024-02-14 17:19 (UTC)
Last Updated: 2024-02-14 17:19 (UTC)

Dependencies (1)

Required by (0)

Sources (4)

Latest Comments

kageyama commented on 2024-08-19 09:54 (UTC)

For those who have problem with the config in /etc/yaycache-hook.conf as i had this hook enabled but didn't knew that it was not even working.

You need to add entry in cache_dirs ->

cache_dirs=(/home/<user-name>/.cache/yay/*/)

Here <user-name> is important as the hook is a shell script and runs with user-name set to root, so if you don't set the cach_dirs array then by default yaycache will scan the directory /home/root/.cache/yay/*/ which is why it won't work.

kageyama commented on 2024-08-13 20:10 (UTC) (edited on 2024-08-28 03:18 (UTC) by kageyama)

yaycache-hook has same problem as https://aur.archlinux.org/packages/paccache-hook#comment-985869.

Here's small example ->

phoenix@ArchLinux ~]$ yaycache -duk0 '--min-mtime=14 days ago'

==> finished dry run: 23 candidates (disk space saved: 1.79 GiB)
[phoenix@ArchLinux ~]$ yaycache -duk0 \'--min-mtime=14 days ago\'
==> no candidate packages found for pruning

Edit: a solution has been found here https://aur.archlinux.org/packages/paccache-hook#comment-988314