It'd be great to have an analogue to Ubuntu's DPkg::Post-Invoke for RHEL.
Here's a proposed way:
- Install the plugin:
sudo dnf install -y python3-dnf-plugin-post-transaction-actions # make it a dependency to patchman-client
- Configure post-transaction hook:
echo "*:any:/bin/sh -c 'if [ -x /usr/sbin/patchman-client ]; then echo Sending report to patchman server...; /usr/sbin/patchman-client -n; fi'" | sudo tee /etc/dnf/plugins/post-transaction-actions.d/patchman.action > /dev/null
It'd be great to have an analogue to Ubuntu's
DPkg::Post-Invokefor RHEL.Here's a proposed way:
sudo dnf install -y python3-dnf-plugin-post-transaction-actions # make it a dependency to patchman-clientecho "*:any:/bin/sh -c 'if [ -x /usr/sbin/patchman-client ]; then echo Sending report to patchman server...; /usr/sbin/patchman-client -n; fi'" | sudo tee /etc/dnf/plugins/post-transaction-actions.d/patchman.action > /dev/null