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

Dylan Martin dylan at sweetlabs.com
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?

Thanks!

-Dylan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20141001/7baade1b/attachment.html>


More information about the Rpm-list mailing list