Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.