LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 02-04-2004, 10:02 PM   #1
nausicaa3000
LQ Newbie
 
Registered: Feb 2004
Distribution: slackware
Posts: 5

Rep: Reputation: 0
gunzip does not extract *.tgz


I am having trouble with extracting a *.tgz archive. Gzip was not installed on the system. I got it from the gzip home page and did as the instructions show:
tar xvf gzip-1.2.4.tar
cd gzip-1.2.4
./configure
make
When I use gunzip to extract the archive it gives a checksum error. The archive seems to be fine, and I can extract the tar using winzip. Could this be a problem with the way the file was transfered to the AIX box? I used ftp (put).
 
Old 02-04-2004, 10:39 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 121Reputation: 121
Did you select binary file type in ftp? If it was transfered in ascii mode it would surely cause checksum errors.
 
Old 02-04-2004, 11:50 PM   #3
nausicaa3000
LQ Newbie
 
Registered: Feb 2004
Distribution: slackware
Posts: 5

Original Poster
Rep: Reputation: 0
That may be the answer, though I used the same method of transfer to bring the gzip tar archive over to the system. Would an ascii transfer effect *.tgz files and not *.tar?
In any case, how do I try a binary transfer via ftp?

Thanks!
 
Old 02-05-2004, 03:31 AM   #4
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
To do a binary transfer, just type "bin" when at the ftp> prompt.
 
Old 02-05-2004, 04:43 AM   #5
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
use "tar xzf filename.tar.gz" to extract gzipped tarfiles.

Or gunzip them then untar them manually.

It's much quicker to type "tar xzf"

Also "tar xjf filename.tar.bz2" automatically calls bzip2.
 
Old 02-05-2004, 10:03 PM   #6
nausicaa3000
LQ Newbie
 
Registered: Feb 2004
Distribution: slackware
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you very much, the binary transfer worked just fine!
 
Old 02-07-2004, 04:06 PM   #7
MrPotatoHead
Member
 
Registered: Mar 2003
Location: NY
Distribution: Fedora Core 1,RH AS 2.1, RH AS 3.0, Mandrake 9.0
Posts: 33

Rep: Reputation: 15
Quote:
Originally posted by snacky
use "tar xzf filename.tar.gz" to extract gzipped tarfiles.

Or gunzip them then untar them manually.

It's much quicker to type "tar xzf"

Also "tar xjf filename.tar.bz2" automatically calls bzip2.

I might be wrong but usually the AIX tar binary doesn't know how to handle gzipped files.. We usually ftp the gzip binary out to our servers if we need to gunzip someting

MrP
 
  


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
how to extract tgz Longinus Linux - Newbie 14 12-21-2015 03:30 AM
Extract specific files from .tgz dgermann Linux - Newbie 6 08-25-2004 10:39 AM
how to extract file *.tgz vanhelsing Linux - Software 1 06-05-2004 06:07 AM
extract single directory from .tgz rickenbacherus Linux - General 2 02-07-2004 10:37 AM
how do i extract a .tgz ? lax2sman Linux - Networking 4 02-11-2002 04:40 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 01:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration