On Mon April 13 2009 11:55:48 pm Patrick Shanahan wrote:
* Richard <ricreig@gmail.com> [04-13-09 23:49]:
I have a RPM file built with rpmbuild which contained sourcefiles for the application. Due to a disk crash, I lost the original sources. I still have a copy of the project.src.rpm which contains a file that I need to recover.
How can I recover/extract a single file from an RPM file?
Easiest for a non-command-line junkie, use mc, open the rpm and save the particular file.
Thankyou Patrick, That almost works. Apparantly the *.src files are all gzipped and I can't find how to separate the pieces. MC is very powerful and I didn't know about the 'dive-in' feature for RPM's. For regular archives, it looks like it is just doing a 'cd <directorypath>' and if a RPM stored files separately, what MC does would be fine. I don't see any separate files, just /info, HEADER install.sh and update.sh which are 39 byte executables. I can't locate where the actual files are contained. I'm using the version of mc found in openSuSE v11.0. mc ver 4.4.2 I found a app 'rpm2cpio2' that on some RPMs, seem to list the install scripts, but on others, it is all binary. I don't mind using a CLI if I can find what the magic words are :) Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org