LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rpm switches for src files (https://www.linuxquestions.org/questions/linux-software-2/rpm-switches-for-src-files-66209/)

krumholz 06-17-2003 03:13 PM

rpm switches for src files
 
Simple question:

I have the following file abcd.src.rpm

When I try to extract it with rpm -ivh abcd.src.rpm nothing happens or I cant find the source (not sure).

1 - What is the correct switches for src rpm files ?

2 - Is their a switch to find the destination path ?


Thanks !!!!!

krumholz 06-17-2003 03:33 PM

OK i found the files after RPM expanded. But it is now in the format abcd.tar.Z I tried tar xvf abcd.tar.Z and got error.

Is .Z a tar file, and what app should expand it ?

zmedico 06-17-2003 03:44 PM

You can build binary rpms by doing "rpmbuild --rebuild abcd.src.rpm". Is that what you want? To uncompress abcd.tar.Z use "tar xvfZ abcd.tar.Z"

krumholz 06-18-2003 08:36 AM

Thanks for the reply. I eventually figured it out when I found an app call zcat. So my command was

zcat tcpdump-3.4.tar.Z | tar xfv -

I didnt know that tar had a "Z" switch.

Adam

zmedico 06-18-2003 12:07 PM

Quote:

Originally posted by krumholz
I didnt know that tar had a "Z" switch.
Neither did I, but it was in the man page.


All times are GMT -5. The time now is 07:54 AM.