I have a rpm named deployment which has a preun section like:
preuninstall scriptlet (using /bin/sh):
echo "You should not uninstall this package"
I have another rpm named "installrpm" which should replace "deployment"
A- I have added
linesi n "installrpm" spec file.
However, because of the preun lines, installrpm can not replace deployment.
B- I have tried to remove deplyment by hand in the post section of
rpm -q deployment 2>&1 > /dev/null
if [ $? -eq 0 ]; then
rpm -ev deployment --nodeps --noscripts
However this time, rpm db lock can not be obtained by inner "rpm -ev
deployment --nodeps --noscripts" command.
I have to put "installrpm" into a repository. So it should be working
without manual intervention.
Do you have any recommendation?
Received on Sat Nov 13 09:52:24 2010