summarylogtreecommitdiffstats
path: root/pacman-cache-cleanup.hook
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-cache-cleanup.hook')
-rw-r--r--pacman-cache-cleanup.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/pacman-cache-cleanup.hook b/pacman-cache-cleanup.hook
new file mode 100644
index 000000000000..a22ff15fc39b
--- /dev/null
+++ b/pacman-cache-cleanup.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = Package
+Operation = Remove
+Operation = Install
+Operation = Upgrade
+Target = *
+
+[Action]
+Description = Removing obsolete cached package files (keeping the latest two)...
+When = PostTransaction
+Exec = /usr/bin/paccache -rvk2