Is there any specific exit code to abort the RPM installation if any post script fails ?

Solution Verified - Updated -

Issue

  • Is there any specific exit code to abort the RPM installation if any post script fails ?
  • If an rpm has few %posttrans scriptlets, in case during installation of rpm, if %posttrans scriptlet fails, is it possible to roll back partially installed rpm i.e. the files deployed by the same, shall be deleted ?

Environment

  • Red Hat Enterprise Linux (ALL)
  • RPM

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content