Added paccache hooks

This commit is contained in:
Brainwrecked Tech 2019-12-04 01:20:55 -05:00
parent 0b2fad6c02
commit 6e14cb7cb6
2 changed files with 24 additions and 0 deletions

12
paccache-installed.hook Normal file
View File

@ -0,0 +1,12 @@
[Trigger]
Type = Package
Operation = Remove
Operation = Install
Operation = Upgrade
Target = *
[Action]
Description = Removing old installed packages from pacman cache...
Depends = pacman-contrib
When = PostTransaction
Exec = /usr/bin/paccache -rk2

12
paccache-uninstalled.hook Normal file
View File

@ -0,0 +1,12 @@
[Trigger]
Type = Package
Operation = Remove
Operation = Install
Operation = Upgrade
Target = *
[Action]
Description = Removing uninstalled packages from pacman cache...
Depends = pacman-contrib
When = PostTransaction
Exec = /usr/bin/paccache -ruk0