From 6e14cb7cb61c0a14e815f79d3116f783971baaef Mon Sep 17 00:00:00 2001 From: BrainwreckedTech Date: Wed, 4 Dec 2019 01:20:55 -0500 Subject: [PATCH] Added paccache hooks --- paccache-installed.hook | 12 ++++++++++++ paccache-uninstalled.hook | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 paccache-installed.hook create mode 100644 paccache-uninstalled.hook 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