Can I make an rpm abort installation in a %post script?

Dylan Martin dylan at
Wed Oct 1 18:06:22 UTC 2014

Hi all.

I basically want to add a regression test to my spec file's %post script
and have the rpm uninstall itself if the %post script fails.

If my %post script exits non-zero, I get a non-fatal POST error.

Is there a way to make %post give a fatal error?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Rpm-list mailing list