where do dnf plugins go?

Tom Horsley horsley1953 at gmail.com
Sun Jul 19 22:34:29 UTC 2015


On Sun, 19 Jul 2015 23:10:28 +0100
Patrick O'Callaghan wrote:

> Here they're in /usr/lib/python2.7/site-packages/dnf-plugins but I
> wouldn't regard that as stable once Python 3 becomes the default.

Yea, I ran dnf under strace to see what directories it poked
around in and that appears to be the only place it looks.
I had hoped to see it looking in some additional place
like /etc/dnf/dnf-plugins, but I didn't notice anything
like that.

Anyway, I appear to have managed to write an "afterdnf"
plugin that starts a background job to wait for the
pid that ran the plugin to go away, then runs some hooks
once dnf has exited. For adapting my "big hammer" to
fedora 22:

http://tomhorsley.com/game/Mjolnir.html :-).


More information about the users mailing list