How can an RPM be built to trigger scriptlet before another package is updated?

Solution Verified - Updated -

Issue

There is a requirement for an RPM to have triggers whereby when one of a set of other packages are installed or upgraded the trigger will run before the packages are installed to prep the system, and then run again after the packages are installed.

%triggerin doesn't seem to work, it only seems to run after the associated package has been updated/installed.

Is it possible to trigger a scriptlet before an associated package is installed or updated?

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

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