Bug 1220182
Summary: | [plugins] Support post-transaction actions | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jeremy Fitzhardinge <jeremy> |
Component: | dnf-plugins-extras | Assignee: | Igor Gnatenko <ignatenko> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | akozumpl, bugzilla, elad, extras-qa, freddy, gregory.lee.bartholomew, ignatenko, jeremy, jkadlcik, jsilhan, jzeleny, LaurenWBard, mluscon, packaging-team-maint, plagrotrou, pnemade, rhel, shulyaka, tim.lauridsen, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 967264 | Environment: | |
Last Closed: | 2016-07-07 09:40:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jeremy Fitzhardinge
2015-05-10 23:11:55 UTC
I think that this plugin should rather go into the community plugins since implementing a custom DNF plugin is a more powerful and an already supported way to satisfy the use cases of the requested plugin. I fully agree. Dnf supports post a transaction hook. It doesn't support pre-transaction. Let me know what do you want from plugin. I will implement it. Igor, We're just looking for the ability to configure arbitrary commands to run after certain packages are acted on. For yum this was implemented in yum-plugin-post-transaction-actions ... if this were re-implemented for dnf, I think everyone would be happy, but I doubt anyone needs it to be implemented in exactly the same way (particularly because it doesn't seem to be very well documented), so long as it can accomplish the same thing. Here's the description of yum-plugin-post-transaction-actions: Yum plugin to run arbitrary commands when certain pkgs are acted on This plugin allows the user to run arbitrary actions immediately following a transaction when specified packages are changed. My understanding is that it creates a directory at /etc/yum/post-actions ... in that directory, a user could place "action" files for each package the user wishes to have post transaction actions apply to (e.g., the user could create a file named kernel.action if they want to run a command after the kernel is updated (actually, I don't think it matters what the file name is, as long as it ends in ".action", since the package name must be specified inside the file)) ... inside the file the user would enter the package name, an action (e.g. install or update), and the path to a script to run, like follows ... kernel:update:/path-to/script-to-run.sh In this case, the script will run any time the kernel package is updated. You can also pass variables such as the package version to the script, like follows ... kernel:update:/path-to/script-to-run.sh $ver $rel $arch Is anybody working on this by chance? I personally think this is a big omission in DNF. I love its speed but when it comes to functionality I still prefer yum at this moment. I am starting to work on it. Thanks, really appreciate any effort. Any updates on this functionality? It does not appear to be included in F24 .. (In reply to Freddy Willemsen from comment #7) > Any updates on this functionality? It does not appear to be included in F24 > .. unfortunately not yet. Lets track in upstream: https://github.com/rpm-software-management/dnf-plugins-extras/issues/63 |