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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.