Why does the value of %posttrans comes as 0 after installing any package?
Issue
-
While installing any rpm, the argument to
%posttransshould be equal to1; in RHEL 7, it is coming aszero (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 = 1correctly. 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.