"RPM is a widely-used tool for delivering software for
Linux. Users can easily install an RPM-packaged product. In this
article, third in a series, Dan explains how to run scripts when
your package is installed or uninstalled, or when other packages
are installed or uninstalled.
It's often useful to be able to execute commands when your
program is installed or uninstalled on a user's machine. For
example, you might need to edit a system configuration file to
enable a new service, or need to define a new user to own the
program that you're installing.
To get the most out of the advice and examples in this article,
take a look at Part 1 and Part 2 of this series, which show you how
to use RPM and how to distribute your work, respectively."