这是indexloc提供的服务,不要输入任何密码
Skip to content

tmalkowski/yum-dnf-reporting

Repository files navigation

yum/dnf post-transaction reporting action+script

Keep track of yum/dnf transactions (install, remove, update, history rollback, etc) in a centralized location. Make yum/dnf tell you what it just did, every time it does something.

These files should be owned by root and not world/group readable.

These scripts are pretty basic, and are intended for use with a specific version of splunk. As such, they should be treated as example / reference code when implementing in your environment.

To use these as-is, be sure to edit the *-post-transaction-reporting.sh scripts and change SPLUNK_URL + SPLUNK_AUTHORIZATION values as appropriate.

For yum-based systems: (e.g. RHEL 6+7)

  • yum install yum-plugin-post-transaction-actions
  • Save yum-post-transaction-reporting.sh to /usr/local/sbin/ (or edit yum-post-transaction-reporting.action to reflect the correct path)
  • Save yum-post-transaction-reporting.action to /etc/yum/post-actions/

For dnf-based systems: (e.g. RHEL 8+9)

  • dnf install python3-dnf-plugin-post-transaction-actions
  • Save dnf-post-transaction-reporting.sh to /usr/local/sbin/ (or edit dnf-post-transaction-reporting.action to reflect the correct path)
  • Save dnf-post-transaction-reporting.action to /etc/dnf/plugins/post-transaction-actions.d/

This could definitely be improved, but should work as an effective "MVP" for most environments.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages