[CentOS] Query RPM file %post section

Sun Apr 4 11:15:21 UTC 2010
Kwan Lowe <kwan.lowe at gmail.com>

On Sun, Apr 4, 2010 at 6:59 AM, Tronn Wærdahl <tronnw at gmail.com> wrote:
> Hi
>
> I have a .rpm file, in the file there is some commands in the %post section,
> how can I query the rpm file so it display the commands in %post section.

Try:
rpm -q --scripts package_name