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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.