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

Sun Sep 14 13:21:25 UTC 2008
Jim Perrin <jperrin at gmail.com>

On Sun, Sep 14, 2008 at 9:19 AM, Ralph Angenendt <ra+centos at br-online.de> wrote:
> 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 /*

I might also add: DO NOT RUN THIS AS ROOT. (just to be extra careful
about things)


-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell