LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-31-2003, 09:05 PM   #1
johnyy
Member
 
Registered: Jun 2003
Posts: 92

Rep: Reputation: 15
tar command..


hello, i done some research but still can't not find my anwer.. hope your guys could help.. the question it's that i rpm -ivh the redhat source from cd1 cd2 cd3, i go to /usr/src/redhat/SOURCES, ther's a lot tar and gunzip files... i was enable to gunzip *.tar.gz and binzip2 *.tar.bz2 at once, but i wasn't enable to tar xvf *.tar file... or tar zxvf *.tar.gz at once... it would give me error say

tar: rdate-1.3.tar.gz: Not found in archive
tar: rdist-v1.tar.gz Not found in archive

but i was enable to do

tar zxvf rdist-v1.tar.gz(work fine without problem)


thanks
 
Old 12-31-2003, 09:27 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
I'm a bit lost. But lemme see if I understand. To uncompress a file named rdist-v1.tar.gz, you could:

1- tar xvzf rdist-v1.tar.gz

as you did or...

2 - gunzip rdist-v1.tar.gz

That would make a bigger file named rdist-v1.tar. Note that now it's tar, not gunzip, so type

tar xvf rdist-v1.tar

For bunzip2 (files ended with bz2) the command is:

bunzip2 rdist-v1.tar.bz2

I really did not understand the question, but this is how I uncompress stuff

Good luck and Happy New Year!
 
Old 12-31-2003, 09:39 PM   #3
johnyy
Member
 
Registered: Jun 2003
Posts: 92

Original Poster
Rep: Reputation: 15
let me clear that a little bit, after i rpm -ivh source from redhat iso, all the source go in to the folder /usr/src/redhat/SOURCES.. there's a lot those tar.gz files... my question it's how could i untar all those files at once with the command tar ?? (like tar zxvf *.tar.gz, but it didn't work)

thanks
 
Old 12-31-2003, 10:23 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
I see . I've never done it, sorry. But in DOS, we did *.* for everything, so tar xvzf *.* (?). This is the wildest guess I can try . It might work differently with tars though...

well, good luck! Please let me know if you find a way doing it, I'd love to know thanks
 
Old 12-31-2003, 10:54 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Maybe this little script which I saw here recently would work for you.....

______________________________
#!/bin/bash
for i in *.gz; do
tar -xzvf $i
done
 
  


Reply



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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
Tar command juanb Linux - General 4 11-03-2005 12:10 AM
tar command? xmdms Linux - General 4 10-07-2004 01:29 PM
tar command harisankar Linux - General 2 08-02-2004 12:44 PM
Tar command satimis Linux - Newbie 3 11-03-2003 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration