I'd like to run a script (let's say myScript.sh) every time a
yum update or
yum install command is executed.
So if I run
yum update someprogram then
myScript.sh should be executed right after that. Is this possible?
Currently I could run a script if I put it in the ".spec" file when I build the rpm to install, but we have a lot of packages and I'd like to have this script run everytime any package gets updated. I thought about maybe using a cron job to run it every hour but that doesn't seem like a good idea.