Hello Sanket,
I will try to explain more in detail:
We have build rpm packages for ControlM and ControlM for SAP. The old packages are build in a way, that if you update to a newer version, the %postun part does a "rm -r /opt/ctm". And that ends up with a broken "ControlM for SAP", because some files for the SAP part is in the same directory. When I do a "dnf update", I don't have the possibility to tell dnf, that ControlM has to be updated before ControlM for SAP will be updated.
The %required option in the ControlM for SAP just checks that ControlM is installed. So the SAP part is some times updated before the main package und then the sap module end up broken because of the "rm" command in the old ControlM package.
For now we will do the update witch a script, that rules the sequence...
best regards,
Joerg
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------
Original Message:
Sent: Thu June 29, 2023 12:52 PM
From: SANKET RATHI
Subject: how to solve a reverse dependency in a rpm?
Hi Joerg,
Can you please specifically tell what you want to achieve. I think I am not able to understand.
Thanks,
Sanket Rathi
STSM - AIX Development
Member IBM Academy of Technology, IBM Master Inventor
IBM India Systems Development Lab, Hyderabad, India
Office : +91-40-71857052
Original Message:
Sent: 6/27/2023 10:26:00 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
------------------------------
#AIXOpenSource