Why does the value of %posttrans comes as 0 after installing any package?

Solution Verified - Updated -

Issue

  • While installing any rpm, the argument to %posttrans should be equal to 1; in RHEL 7, it is coming as zero (0)

    # rpm -ivh /var/tmp/foo-0.1-1.noarch.rpm
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:foo-0.1-1                        ################################# [100%]
    arg 1 = 0
    
  • However, on RHEL 8 and later it gets arg 1 = 1 correctly. The same is documented in Upstream Fedora project.

Environment

  • Red Hat Enterprise Linux 7
    • 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