CentOS

CentOS #

Custom post-transaction Hooks #

Yum allows executing custom scripts with a post-action plugin. For that you need to first install the plugin and then drop your actions in /etc/yum/post-actions/*.action.

yum install yum-plugin-post-transaction-actions

Check that it is enabled first. You can find more information on the action usage here.

A silly example executing upon any vim updates could look like this:

vim*:any:bash -c "(date; id) > /tmp/post"