Extracting RPM packages

$ mkdir package && cd package
$ rpm2cpio <package.rpm> | cpio -idmv

Listing scripts

Files

$ rpm -qp --scripts <package.rpm>
$ rpm -qp --scripts httpd-2.4.10-1.fc19.rpm
  • -q: query
  • -p: package

Installed

$ rpm -q --scripts <installedpackage>
$ rpm -q --scripts httpd