[CentOS] Slackware's 'explodepkg' equivalent for rpm?

Sun Sep 14 13:19:11 UTC 2008
Ralph Angenendt <ra+centos at br-online.de>

Niki Kovacs wrote:
> Hi,
>
> Is there any 'explodepkg' equivalent for the rpm command? What I want is  
> simply uncompress an RPM package to get the files directly, but I didn't  
> find anything in rpm's manpage.

rpm2cpio foo.rpm | cpio -i --make-directories

*DO NOT RUN THAT IN /*

Cheers,

Ralph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20080914/8c8d63a0/attachment-0005.sig>