summarylogtreecommitdiffstats
path: root/99-cleanup-cache-outdated.hook
diff options
context:
space:
mode:
Diffstat (limited to '99-cleanup-cache-outdated.hook')
-rw-r--r--99-cleanup-cache-outdated.hook9
1 files changed, 9 insertions, 0 deletions
diff --git a/99-cleanup-cache-outdated.hook b/99-cleanup-cache-outdated.hook
new file mode 100644
index 000000000000..a0675c34d860
--- /dev/null
+++ b/99-cleanup-cache-outdated.hook
@@ -0,0 +1,9 @@
+[Trigger]
+Operation = Upgrade
+Type = Package
+Target = *
+
+[Action]
+Description = Removing outdated packages from cache...
+When = PostTransaction
+Exec = /usr/bin/paccache --keep 1 --remove --quiet