Pacman hooks

@keybreak has presented 2 hooks here and I wonder if you can use both at the same time. Because both use the same triggers and would then have to cut out each other?

You can combine them:

Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
Description = Cleaning pacman cache...
When = PostTransaction
Exec = /usr/bin/paccache -rk 2 -ruk 0

should i see the description in the terminal or does it all run silently in the background?

Yes, “Cleaning pacman cache…”

1 Like

btw, they don’t cut out each other it’s consecutive in execution, i’ve separated them in my post because some people might want one and not the other :upside_down_face:



This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.