While uninstalling an RPM on CentOS 4.4, I see

error: %preun(mypackage-1.0) scriptlet failed, exit status 1

How can I find out exactly what it's trying to run, so that I can poke around in the script and find out why it's failing?

link|improve this question

52% accept rate
feedback

2 Answers

up vote 2 down vote accepted

You could view all Scripts included in a RPM with the following command:

rpm -qi --scripts

Or use:

rpm -evv

link|improve this answer
feedback

Worked it out... rpm -evv did the trick.

link|improve this answer
+1 selflearner :) – Node Oct 2 '09 at 8:38
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.