Bug 474704
| Summary: | RFE: add support for melting packages | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Nicolas Mailhot <nicolas.mailhot> |
| Component: | rpm | Assignee: | Fedora Packaging Toolset Team <packaging-team> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | ffesti, james.antill, n3npq, pmatilai, rvokal, tcallawa |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-20 09:48:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 446451 | ||
|
Description
Nicolas Mailhot
2008-12-04 21:56:43 UTC
just my thoughts. no. 1. Install yum-post-transaction-actions 2. Install a file in /etc/yum/post-actions/mypkg-auto-remove.action which does: mypkg:install:yum remove -y mypkg ...the above works, and is Seth's fault :) This bug has been triaged (In reply to comment #2) > ...the above works, and is Seth's fault :) The above does not really work, since: 1. it replaces a manual rpm -e at the end of the transaction by another manual step before the transaction, so you win nothing 2. if you try a self-contained system with the package itself requiring yum-post-transaction-actions and installing the file, yum does not take it into account in this transaction 3. it's yum-specific; I had RFCed something at the rpm level to be agnostic (ok I could live with this bit if the rest worked but it does not) FYI:
http://rpm5.org/community/rpm-devel/3245.html
Thanks for the RFE.
Nicholas, the post-transaction plugin happens AFTER the transaction has ended. It is safely away and doesn't suffer from the removal problems. Also the plugin doesn't run until after the files are laid down. so a package can use it to take action on itself. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. In most cases you can just add the necessary Obsoletes: to one of the new packages. While this might not be as beautiful as a dedicated solution it should be good enough. |