I am looking for a way to exit rpm install if some condition is false. I have added a small script in the %pre section that exits install if my condition fails.
The
Did you try to use Verification Scripts? Writing Verification Scripts