LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-17-2003, 03:13 PM   #1
krumholz
LQ Newbie
 
Registered: Jul 2002
Location: Chicago
Distribution: RH9
Posts: 24

Rep: Reputation: 15
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 !!!!!
 
Old 06-17-2003, 03:33 PM   #2
krumholz
LQ Newbie
 
Registered: Jul 2002
Location: Chicago
Distribution: RH9
Posts: 24

Original Poster
Rep: Reputation: 15
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 ?
 
Old 06-17-2003, 03:44 PM   #3
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
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"
 
Old 06-18-2003, 08:36 AM   #4
krumholz
LQ Newbie
 
Registered: Jul 2002
Location: Chicago
Distribution: RH9
Posts: 24

Original Poster
Rep: Reputation: 15
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
 
Old 06-18-2003, 12:07 PM   #5
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Smile

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
QUERY: unusual .src.rpm files.... kevingpo Fedora 1 07-23-2005 12:31 AM
Please Demystify .src.rpm files koodoo Linux - Newbie 5 05-01-2005 04:44 PM
how to install src.rpm files? ludwig W Linux - General 4 07-18-2004 11:02 AM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM
How to install from .src.rpm files Baran Linux - Newbie 2 09-02-2003 09:30 AM


All times are GMT -5. The time now is 03:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration