aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/pacman/templates/paccache.hook.j2
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2025-04-07 17:11:57 +0200
committerRomain Gonçalves <me@rgoncalves.se>2025-04-07 17:11:57 +0200
commit7da9fda6db8e9fce02ba0f7871c75b3938f72d92 (patch)
tree8da071c85a33715a7996021af2faec1a03888b24 /roles/_workstation/pacman/templates/paccache.hook.j2
parente6c5924c8a5250d00dd5e89ca31c21490bf3face (diff)
downloadrules-7da9fda6db8e9fce02ba0f7871c75b3938f72d92.tar.gz
feat(roles/_workstation): add paccache hookHEADtrunk
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.