Added paccache hooks
This commit is contained in:
12
paccache-installed.hook
Normal file
12
paccache-installed.hook
Normal 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
12
paccache-uninstalled.hook
Normal 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
|
||||
Reference in New Issue
Block a user