Extracting files from an rpm or srpm
Hello. I have an rpm here that i need a file from. It contains a file called functions that i need from it. I have both the src.rpm and the rpm. Thanks!!
-Matt |
install the .src.rpm and search for your file somewhere in /usr/src/REDHAT or something like that.
|
If you have the rpm tools installed, then rpm2cpio <file.rpm> will get you the file.cpio archive. Else use a tool like "rpmunpack" (see Freshmeat) which will also give you the cpio archive. Then gunzip if it's a gzipped cpio, else "(z)cat file.cpio(.gz) | cpio -idm --no-absolute-filenames" should give the contents.
|
All times are GMT -5. The time now is 12:13 PM. |