diff --git a/paccache-installed.hook b/paccache-installed.hook new file mode 100644 index 0000000..576a374 --- /dev/null +++ b/paccache-installed.hook @@ -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 diff --git a/paccache-uninstalled.hook b/paccache-uninstalled.hook new file mode 100644 index 0000000..75786ce --- /dev/null +++ b/paccache-uninstalled.hook @@ -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