How to extract contents of rpm package
Some times it is required to extract rpm package and access its contents. This is needed if we want to acccess indidual files of it orto replace few files and repakage rpm.
Followig command lets you extract rpm package.
rpm2cpio pbs-mom-12.2.6.151771-0.x86_64.rpm | cpio -idmv
You can achiev the same on Solaris OS with the following command.
#pkgtrans pbs64.pkg a/