ok, you sparked my memory! This was discussed on the list before, but a
previous (quick) search didn't find the thread. after you mentioned cpio,
I found it.

>From a note from Chuck Mead on Sept 1 1999
(http://www.moongroup.com/old/Redhat4/msg00127.html) you can do

rpm2cpio your.rpm | cpio -i the_file_you_want

However, his example was with a .src.rpm, and I just tried this (and
failed) on a regular rpm. I say failed because even though I got no
errors, and it appeared to have worked, no file was extracted. I even
tried the --no-absolute-filenames switch, the full path to the file, just 
the filename, etc.

anyone?
charles

On Tue, 26 Dec 2000, Bret Hughes wrote:

> Charles Galpin wrote:
> 
> > I'm told you can do this from within midnight commander (mc) but wouldn't
> > mind knowing how either.
> >
> 
> I don't know if there is a way to do this with rpm or not, does not look
> like it from the options listed in the man pages.  As mentioned though, this
> can be done with mc.
> 
> from within mc, drill into the rpm.  It will be opened in a virtual file
> system.  Drillinto the cpio.contents file and viola! the files contained in
> the rpm are open for your perusing pleasure.   I believe you can copy them
> to where ever you want.
> 
> As to how mc does this I do not know but there ought to be a way to
> replicate it from the command line.  Perhaps MAximun RPM talks of this, I
> have never read it.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to