aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/pacman.d
diff options
context:
space:
mode:
Diffstat (limited to 'etc/pacman.d')
-rw-r--r--etc/pacman.d/hooks/pacman-cache-cleanup.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/pacman.d/hooks/pacman-cache-cleanup.hook b/etc/pacman.d/hooks/pacman-cache-cleanup.hook
new file mode 100644
index 0000000..a22ff15
--- /dev/null
+++ b/etc/pacman.d/hooks/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