summarylogtreecommitdiffstats
path: root/pacman-cache-cleanup.hook
diff options
context:
space:
mode:
authorCaleb Maclennan2021-11-27 06:46:35 +0300
committerCaleb Maclennan2021-11-27 06:46:35 +0300
commit0161effad3e6e4fbdfc10d8e22e5dacc419279d8 (patch)
treeb58a402f36d1b41a08c2b0d188134101c1b56ae5 /pacman-cache-cleanup.hook
parentf68f737508d66a2446bd252afdbd002aa329b3ce (diff)
downloadaur-0161effad3e6e4fbdfc10d8e22e5dacc419279d8.tar.gz
upgpkg: pacman-cleanup-hook 1.1-1
upstream release
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