The mighty terminal

You can just create pacman hook(s) like i did :wink:

Put em in /etc/pacman.d/hooks/

99-clear-paccache.hook

[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Operation = Remove
Target = *

[Action]
Description = Clear pacman cache...
When = PostTransaction
Exec = /usr/bin/paccache -rk2

99-clear-paccache-unused.hook

[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Operation = Remove
Target = *

[Action]
Description = Clear pacman unused cache...
When = PostTransaction
Exec = /usr/bin/paccache -ruk0

2 Likes