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, 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