Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 3, 2008, 09:42 PM   #1
kavi
macrumors member
 
Join Date: Oct 2007
How do I open a tgz file?

I downloaded something and it came in a tgz file. I have absolutely no idea how to unpack or open or whatever this file and the only information I can find from google is that I have to download some $80 stuffit program.

So is there any other program out there that is free that I can use to open this? I have unarchiver and it doesn't seem to be working.

Thanks for any help.
kavi is offline   0 Reply With Quote
Old Apr 3, 2008, 09:43 PM   #2
psychofreak
Retired
 
Join Date: May 2006
Location: London
You need the free Stuffit Expander (just sign up here)...

This functionality really should come with OSX
psychofreak is offline   0 Reply With Quote
Old Apr 3, 2008, 10:35 PM   #3
TheStu
macrumors 65816
 
Join Date: Aug 2006
Location: Carlisle, PA
I thought OS X could open .tgz's... or have I always had stuffit installed?
__________________
MacBook 1.83GHz Core Duo; 1024MB RAM (2*512MB); 100GB 5400RPM 16MB SATA150; ComboDrive; Intel GMA950; Black Keys, White Shell
TheStu is offline   0 Reply With Quote
Old Apr 3, 2008, 10:58 PM   #4
Blubbert
macrumors 6502
 
Join Date: Nov 2006
Download the Unarchiver, its free, and better than Stuffit. Or you could use the gunzip command in the terminal and then the tar command, if youre proficient with the command line.
Blubbert is offline   0 Reply With Quote
Old Apr 3, 2008, 11:02 PM   #5
psychofreak
Retired
 
Join Date: May 2006
Location: London
Quote:
Originally Posted by Blubbert View Post
Download the Unarchiver, its free, and better than Stuffit. Or you could use the gunzip command in the terminal and then the tar command, if youre proficient with the command line.
The Unarchiver is much more prone to failing, especially with password protected files.
psychofreak is offline   0 Reply With Quote
Old Apr 3, 2008, 11:08 PM   #6
kavi
Thread Starter
macrumors member
 
Join Date: Oct 2007
Way for them to hide that free version of the program. I looked all over their site and could only find a 30 day trial that still wanted my credit card number.

Thanks for that.
kavi is offline   0 Reply With Quote
Old Apr 3, 2008, 11:16 PM   #7
kavi
Thread Starter
macrumors member
 
Join Date: Oct 2007
And apparently stuffit doesn't work.

Could someone give me those terminal instructions? I've never used terminal before so you have to treat me like an idiot when explaining what to do, thanks.
kavi is offline   0 Reply With Quote
Old Apr 3, 2008, 11:20 PM   #8
Nermal
Moderator
 
Nermal's Avatar
 
Join Date: Dec 2002
Location: Whakatane, New Zealand
Something is screwed up if you can't just double-click the file. OS X (Leopard, at least) can open them directly without any additional software.
Nermal is offline   0 Reply With Quote
Old Apr 3, 2008, 11:26 PM   #9
martychang
macrumors regular
 
Join Date: Sep 2007
Bah, why wasn't this the FIRST reply to this thread? Mac OS X is based on UNIX, ever UNIX-like system comes with the "tar" command. tgz is short for tar.gz, a gzipped tarball, the main compression format on Unix systems other than Mac OS X.

Open the Terminal in /Applications/Utilities, "tar -xzf <file>" will do it. The x option says eXtract(as opposed to making a new tar), z says pass it to the "gzip" command first, f says to Force it(many stupid problems that don't mean anything practical are avoided with this).

If you ever encounter a tar.bz2 or tbz/tbz2 file, you would just replace z with j(they ran out of letters), which passes it to bzip2 instead of gzip.
martychang is offline   0 Reply With Quote
Old Apr 4, 2008, 01:02 AM   #10
kavi
Thread Starter
macrumors member
 
Join Date: Oct 2007
so all I do is open terminal and type:

tar -xzf filename.tgz

I've tried that and I can't say it worked...

Quote:
Kavi:~ Kavi$ tar -xzf h2.tgz
tar (child): h2.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Kavi:~ Kavi$
kavi is offline   0 Reply With Quote
Old Apr 4, 2008, 01:41 AM   #11
martychang
macrumors regular
 
Join Date: Sep 2007
Quote:
Originally Posted by kavi View Post
so all I do is open terminal and type:

tar -xzf filename.tgz

I've tried that and I can't say it worked...
Well, ok, you need to be in the directory that the file is in. Or you need to type the full filepath.

CD <relative directory OR absolute path changes you to that directory, and then all commands will executive relative to your location unless an absolute path is specified. But you can always specify an absolute path.

Example: if the file is in your home folder..

tar -xzf /Users/(username)/file.tgz

or
cd /Users/(username)
then
tar -xzf file.tgz

or

cd /Users
cd (username)
tar -xzf file.tgz

Hopefully you get the picture, there are an infinite number of ways to do this.
martychang is offline   0 Reply With Quote
Old Apr 4, 2008, 01:15 PM   #12
kavi
Thread Starter
macrumors member
 
Join Date: Oct 2007
Quote:
Last login: Fri Apr 4 13:13:15 on ttys000
Kavi:~ Kavi$ tar -xzf /Users/Kavi/Desktop/h2.tgz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
Kavi:~ Kavi$
so I guess I'm doing this right and the file itself is screwed up somehow then?
kavi is offline   0 Reply With Quote
Old Apr 4, 2008, 01:31 PM   #13
northy124
macrumors 68020
 
northy124's Avatar
 
Join Date: Nov 2007
Kavi It Would Already be Extracted If You Had Used Stuffit Expander
northy124 is offline   0 Reply With Quote
Old Apr 4, 2008, 02:01 PM   #14
kavi
Thread Starter
macrumors member
 
Join Date: Oct 2007
stuffit didn't work, it gave me some kind of error message.
kavi is offline   0 Reply With Quote
Old Apr 4, 2008, 10:29 PM   #15
martychang
macrumors regular
 
Join Date: Sep 2007
Quote:
Originally Posted by kavi View Post
stuffit didn't work, it gave me some kind of error message.
alright, this is different...

Try renaming it to (file).tar.gz instead of (file).tgz. That might be throwing it off. Otherwise the file may be screwed up, in which case I don't know.
martychang is offline   0 Reply With Quote
Old Apr 4, 2008, 10:55 PM   #16
Big Dave
macrumors 6502
 
Join Date: Nov 2007
Location: Crestview, Fl
Try this

tar -xvzf file.tgz

if that doesn't work, then do it one at a time.

unzip file.tgz
then
tar -xvf file.tar
Big Dave is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Open file in different window dbutlerk OS X 10 Mar 12, 2014 12:47 PM
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory xpmrz Mac Basics and Help 0 Dec 31, 2013 02:59 PM
App cannot Open File doubledee Mac Basics and Help 5 Jul 30, 2013 09:10 AM
Open folder in Finder or open file from HTML/browser mike1 Mac Programming 1 Sep 27, 2012 08:17 AM
Resume Last Open File anonymust Mac OS X 10.7 Lion 1 Jun 22, 2012 02:30 AM

Forum Jump

All times are GMT -5. The time now is 02:21 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC