Ask Your Question
0

RPM hooks for administrators

asked 2016-06-27 17:01:34 -0500

Matthew Cline gravatar image

I know that there's various hooks/triggers that an RPM packager can take advantage of, but are there any for a site administrator can, so that (for example) a script can be run before and after package XYZ is updated?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-06-28 19:13:17 -0500

You'd have to do this with a dnf plugin. There is a "yum-plugin-post-transaction-actions" but this has not been ported to dnf.

http://dnf.readthedocs.io/en/latest/a... will get you started if you want to write one. If not, you should file an RFE against dnf-plugins-extras on bugzilla.

edit flag offensive delete link more
0

answered 2016-06-28 18:48:34 -0500

lletelier gravatar image

You can use/abuse the scriptles in your package-xyz.spec file.

So with scriptles, you can control how the rpm will behavoir when installed, removed or updated.

https://fedoraproject.org/wiki/Packaging:Scriptlets

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-06-27 17:01:34 -0500

Seen: 215 times

Last updated: Jun 28 '16