アーカイブとして展開するだけなら以下のようにする
rpm2cpio hoge.rpm | cpio -ivd
rpm -qp --scripts hoge.rpm
[referer:
The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with .cgidextension, or add a AddHandler cgi-script-debug .cgiline to your .htaccess file.
]