LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Extracting files from an rpm or srpm (https://www.linuxquestions.org/questions/linux-software-2/extracting-files-from-an-rpm-or-srpm-120634/)

MRK 11-27-2003 11:10 PM

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

iceman47 11-27-2003 11:15 PM

install the .src.rpm and search for your file somewhere in /usr/src/REDHAT or something like that.

unSpawn 11-27-2003 11:24 PM

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.