How to exit rpm install in case of an error
问题 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 problem I am facing is I see that the %pre scriptlet is executed, and rpm install does fail. Yet at the end of it I get these 2 lines which I don't want -- Installed ... followed by Complete! Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction missing file zyWhg1.