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
If someone could point me in the right direction to tackle this, I’d be grateful.
Pacman hooks, see https://man.archlinux.org/man/alpm-hooks.5
Operation = Upgrade
Type = Package
Target = YourPackageName
3 Likes
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
2 Likes
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.