aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/pacman/templates/paccache.hook.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/_workstation/pacman/templates/paccache.hook.j2')
-rw-r--r--roles/_workstation/pacman/templates/paccache.hook.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/_workstation/pacman/templates/paccache.hook.j2 b/roles/_workstation/pacman/templates/paccache.hook.j2
new file mode 100644
index 0000000..77b8f4e
--- /dev/null
+++ b/roles/_workstation/pacman/templates/paccache.hook.j2
@@ -0,0 +1,11 @@
+[Trigger]
+Operation = Upgrade
+Operation = Install
+Operation = Remove
+Type = Package
+Target = *
+
+[Action]
+Description = Cleaning pacman cache
+When = PostTransaction
+Exec = /usr/bin/paccache -rvk2
remember that computers suck.