something like dpkg-trigger for rpm

Solution Unverified - Updated -


  • rpm is missing a feature like triggering in a deb package.
  • Example, installing the following rpms at once
RPM_A : %post calls ldconfig
RPM_B : %post calls ldconfig
RPM_C : %post calls ldconfig
  • Instead of running ldconfig after every rpm provide the option in %post ( or anywhere else for that matter ) to specify that this command run after all rpms are done installing.
  • i.e. in the spec files for RPM_{A,B,C} something like:
rpm-trigger ldconfig
  • ldconfig would only be run once after all the rpms have installed.
  • dpkg-trigger man page gives a better idea:
       dpkg-trigger [option...] trigger-name
       dpkg-trigger [option...] command

       dpkg-trigger  is  a tool to explicitly activate triggers and check for its support on the running dpkg.

       This can be used by maintainer scripts in complex and conditional situations  where  the  file triggers, or the
       declarative activate triggers control file directive, are insufficiently rich. It can  also  be  used for
       testing  and  by system administrators (but note that the triggers won't actually be run by dpkg-trigger).


  • Red Hat Enterprise Linux

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