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.
Cheers,
Niki Kovacs
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
On Sun, Sep 14, 2008 at 9:19 AM, Ralph Angenendt ra+centos@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)
On Sun, Sep 14, 2008 at 9:15 AM, Niki Kovacs contact@kikinovak.net 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.
RPM is simply a cpio archive with some additional voodoo. You can use rpm2cpio, and then extract the cpio to your directory. There are a couple examples of doing this in the centos wiki in the tips and tricks section.
On Sun, 14 Sep 2008, Niki Kovacs wrote:
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.
Since I hate the cpio tool, I always use mc (midnight commander) and go inside of the RPM files to copy something out.
If you just want to see what is inside the RPMs, adding a -v to the query shows you the output as if it was a directory-listing:
rpm -qplv <rpm packages>
Kind regards,
On Sun, 2008-09-14 at 15:15 +0200, 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.
If you just want to peruse the rpm from the inside, use 'mc' (Midnight Commander) and it works like a charm. I don't know if it will uncompress them to the directory, as I've never had a need to do that, but check it out. Use F3 to look inside files you see listed. F3 again to back out. F10 quits. I like it. Ric
On Mon, 15 Sep 2008 01:11:39 -0400 Ric Moore wayward4now@gmail.com wrote:
If you just want to peruse the rpm from the inside, use 'mc' (Midnight Commander) and it works like a charm. I don't know if it will uncompress them to the directory, as I've never had a need to do that,
File Roller will do all of that (extract to where-ever you please, etc.)
Just click on the rpm file with Nautilis file browser and the rest happens by magic.