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
Ralph Angenendt
2008-Sep-14 13:19 UTC
[CentOS] Slackware's 'explodepkg' equivalent for rpm?
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-0002.sig>
On Sun, Sep 14, 2008 at 9:15 AM, Niki Kovacs <contact at 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. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
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
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, -- -- dag wieers, dag at centos.org, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors]
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 -- ---------------------------------------------------- My father, Victor Moore (Vic) used to say: "There are two Great Sins in the world... ..the Sin of Ignorance, and the Sin of Stupidity. Only the former may be overcome." R.I.P. Dad. Linux user# 44256 Sign up at: http://counter.li.org/ https://nuoar.dev.java.net/ Verizon Cell # 336-254-1339