For me removal of uninstalled packages is not working. Can anybody give me some pointers what I'm doing wrong?
I set up paccache-hook.conf as follows:
[bhe@box ~]$ cat /etc/paccache-hook.conf
extra_args=-v
cache_dirs=()
installed=true
installed_keep=2
installed_extra_args=
installed_move_to=
uninstalled=true
uninstalled_keep=0
uninstalled_extra_args="'--min-mtime=14 days ago'"
uninstalled_move_to=
Alsa-plugins was uninstalled more than 14 days ago, and still is uninstalled: [2024-04-16T22:57:10+0200] [ALPM] removed alsa-plugins (1:1.2.7.1-2)
[bhe@box ~]$ sudo pacman -Q alsa-plugins
error: package 'alsa-plugins' was not found
Still the package file is in cache, even though mtime is way more than "14 days ago":
[bhe@box ~]$ stat /var/cache/pacman/pkg/alsa-plugins-1\:1.2.7.1-2-x86_64.pkg.tar.zst
File: /var/cache/pacman/pkg/alsa-plugins-1:1.2.7.1-2-x86_64.pkg.tar.zst
Size: 89425 Blocks: 176 IO Block: 4096 regular file
Device: 1,10 Inode: 562135 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2023-11-06 23:12:07.899236660 +0100
Modify: 2023-03-03 10:08:08.000000000 +0100
Change: 2023-11-06 23:12:03.082474118 +0100
Birth: 2023-11-06 23:12:03.029139722 +0100
Has anybody an idea why this is not working?
Pinned Comments
Skycoder42 commented on 2019-03-23 11:00 (UTC)
This packages was inspired by pacman-cleanup-hook and builds on top of it by making the hook configurable. For a basic, non-configurable cleanup, check out that one!