how to extract a gz file

Good morning


Could I ask for some guidance please.

I need upload a data file to my website. This file is a gz data file.

Have downloaded the file onto my iMac (download folder)

This file needs to be extracted or unzipped before being uploaded to my site, what ever the correct terminology is?


Can I do this within my Mac environment or do I have to download a third party application, if I do can anyone recommend one.


Thanks


Shaun

iMac

Posted on Nov 15, 2015 2:14 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 15, 2015 2:30 AM

If your comfortable using Terminal you could use the gunzip command. For more info read the man page for it.

Otherwise you could download "The Unarchiver" from the Mac App Store. It's free, but it can only decompress files. Once installed you'll only have to double-click the *.gz file.

14 replies

Nov 15, 2015 6:53 AM in response to Shaunfromhants

You may have somehow got an odd setting when compressing with 7zip.

If that is the case, then of course windows machine would still unzip.

Why the reason for the .gz compression instead of simply standard zipping?

OS X can decompress .zip files natively.


Anyway, did you try gunzip from Terminal (gunzip -d FullFilePath).

Note: Once entering gunzip -d, you can just drag and drop the

file on the Terminal window and the path will fill in. If there are any spaces

in the path, surround it with quotes.

Nov 15, 2015 8:42 AM in response to Shaunfromhants

http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz


If I just double click......message...no application available.

It auto-unzipped for me.


If you are having a problem, it might be that the association with gz files has been lost.

Select it, Get Info, and in the Opens With section, change it to Archive Utility (you can find it by following Alberto's instructions).

Then, click Change All…

Nov 15, 2015 5:23 AM in response to bigschwabbel

Hello


The file is a gz. On my windows machine ( can I say those words on here) I used 7 zip to do the job. No problems.


The error message "could not not extract".


Deleted the file and downloaded it again. Will not open. I know the file is good because I used the same source on my windows machine. I haven't got my windows machine now, after upgrading to 10, it went out the window. The only reason I used windows was I couldn't work out how to do it on my Mac. I very careful about using third party applications which is why I always ask instead of clicking away on google.


Shaun

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to extract a gz file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.