View Installation / Uninstallation Script Inside The RPM File

Syntax for rpm file
rpm -qp --scripts monit-4.9-2.el5.rf.x86_64.rpm

Syntax for installed httpd package
rpm -q --scripts httpd

Comments