Hi Joerg,
Did you try something like
This should leave al the files on the system. Maybe you must use --noscripts. That depends on what the uninstall scripts do. You could list the scripts beforehand with rpm -q --scripts A Maybe you should also use --nodeps. After this you can reinstall package A.
Maybe you should list the scripts part in the package also beforehand. (rpm -q --scripts -p <path_to_package_A>)
After this you can upgrade package B
Hope this helps
Ane-Pieter Wieringa
------------------------------
Ane-Pieter Wieringa
------------------------------
Original Message:
Sent: Tue June 27, 2023 10:25 AM
From: Joerg Kauke
Subject: how to solve a reverse dependency in a rpm?
Dear community...
I have the requirement for a RPM, lets say "RPM A", that if RPM A is upgrading to its new version, RPM B must be upgraded too, but after RPM A. RPM B requires parts of RPM A.
The problem the older version of RPM A is, it cleans everything in its installation folder, so also parts of RPM B...
I read about the directive suggests and also about %posttrans, but it seems not the best solution?
Any ideas are very appreciated...
Thanks a lot in advance.
Best regards,
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------