Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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

share|improve this answer

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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