How to log the messages if a postscript fails during RPM installation ?

Solution Verified - Updated -

Issue

  • The incorrect return code causes the post-install script to believe the package is install went well and there is no log about the failure.
  • For example, if we update the packages using yum update, if any posttrans script fails, still yum.log will show the package as installed, however it will not work as expected.
  • If we do not have console messages available, then we can not determine if any post script fails. Hence, yum should log the messages in the log file if any post script fails.

Environment

  • Red Hat Enterprise Linux
  • yum-3.2.29-43.el6_5.noarch

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.