Perform an action every time a specific package gets an update

I’d like to run a script every time a specific package updates on my system. It’s a bin package from the official repo, so nothing is built. Anyone know how I can automate that? Of course I can run the script manually when I spot the package in the update list, but I’d like to save a few seconds :slight_smile:
If someone could point me in the right direction to tackle this, I’d be grateful.

Pacman hooks, see

Operation = Upgrade
Type = Package
Target = YourPackageName


Yeah, thanks a lot, just what I needed. I somehow thought the hooks to be associated with package building.

1 Like

No, they’re very versatile actually :upside_down_face:


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