Does RPM support >= for triggerpostun?

Solution Unverified - Updated -


I've got a weird issue with RPM and triggerpostun script. In my spec file it contains:-

%triggerun -- sos < 1.0.2-0

%triggerpostun -- sos >= 1.0.2-0

Building the package for RHEL 5 and 6 on a RHEL 5 host does not generate any error or warning messages.

When I query the triggers of the package on a RHEL 5 host which has the following rpm version installed:-

# rpm -q rpm

I get the following results:-

triggerun scriptlet (using /bin/sh) -- sos < 1.0.2-0      ****  which is expected

triggerpostun scriptlet (using /bin/sh) -- sos < 1.0.2-0      *** NOT expected, what happened to >=????

When I query the triggers of the package on a RHEL 6 host it correctly shows the triggers:-

triggerun scriptlet (using /bin/sh) -- sos < 1.0.2-0

triggerpostun scriptlet (using /bin/sh) -- sos >= 1.0.2-0

Does RHEL 5 RPM not recognize the >= for trigger scriptlets?


Red Hat Enterprise Linux 5.10

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