Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Are there any alternative ways to open a ".tar.gz" file than -xzf or -zxvf or xzvf? I am running Mac OS X 10.7.

My command line returns:

tar: Unrecognized archive format
tar: Error exit delayed from previous errors.

I am doing this to open mysql-5.1.33.tar.gz from a sites method to install MYSQL. I have tried many methods to open the tar and something wrong. What I am not seeing?

share|improve this question

migrated from Apr 18 '12 at 11:28

This question came from our site for professional and enthusiast programmers.

Try just unzipping it first, and ensure it's a valid tar file. – Mike Purcell Apr 18 '12 at 0:41
This isn't a suitable question for stackoverflow. Perhaps While you're here, what does 'file' tell you about the archive? – jimw Apr 18 '12 at 0:41
unzip with gzip first, then use tar. – hkf Apr 18 '12 at 0:41
.. and what does file tell you about the archive, once you've unpacked only it? – sarnold Apr 18 '12 at 0:42

I would guess that the archive is damaged. Try downloading it again, and even controlling the checksum if an intended value is given at the download site if it does not work.

If it still does not work, try

gunzip mysql-5.1.33.tar.gz

to see if the compression is done correctly, and then

tar xvf mysql-5.1.33.tar

to try to unroll the archive. This will pin point the problem better.

share|improve this answer

I had the same problem and it turned out that when I had downloaded the .tar.gz file, I had clicked "Download Link" on a page that led to a second page with the actual download.

So, my .tar.gz was just a bunch of HTML.

You can check by posting the address of the .tar.gz in your browser to make sure it's an actual compressed file.

share|improve this answer

You must log in to answer this question.