Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-31-2003, 09:05 PM   #1
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)

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: 64
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
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)

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: 64
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
Senior Member
Registered: Oct 2003
Posts: 3,057

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

for i in *.gz; do
tar -xzvf $i


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
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:12 PM.

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