[Rpm-maint] [rpm-software-management/rpm] Running a script before uninstall transaction (Issue #2116)

Shreenidhi Shedi notifications at github.com
Sat Jul 2 19:27:36 UTC 2022


Hi All,

I have a requirement to run a script before an uninstall transaction.
`%pretrans` currently gets triggered for install/upgrade transactions, can we do something similar for uninstall transactions?

For example:

Main package is A, B & C are sub packages of A. B & C are dependent on A.

If I do `dnf erase -y A` or `rpm -e B C A` I want to run some commands before B and C get removed.
I can use `%preun A/B` but I have more than 10 sub packages in this spec and I don't want to add a `%preun` for each sub package and do it once before removal of any of the sub packages.

Is it possible to do so? 

--
Shedi

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2116
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2116 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220702/40f29da6/attachment.html>


More information about the Rpm-maint mailing list