local-arch-repo/hooks/1.cleanup_cache.hook

11 lines
240 B
Plaintext

[Trigger]
Type = Package
#Operation = Remove
Operation = Install
Operation = Upgrade
Target = *
[Action]
Description = Removing obsolete cached package files (keeping the latest two)...
When = PostTransaction
Exec = /usr/bin/paccache -rvk2