Is there a way to get /bin/sh -x style output from RPM while it's running a scriptlet? I would like to debug RPM installations.
You can put set -x at the beginning of any scriptlet. And rpm -ivvh to install it will give you more than you would want to know.
Try putting an exit 1 in %post scriptlet, then run sh -x on the temporary file left when the upgrade fails (after removing the exit from the temp file).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With