Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Unzip cpgz files from Windows

Unzip cpgz files from Windows
Thread Tools
SVass
Mac Elite
Join Date: Jul 2003
Location: Washington state
Status: Offline
Reply With Quote
Dec 8, 2009, 12:40 PM
 
How do I do it. Somewhere I read that ditto will work. How do I do that? Or is there a simpler way?
sam
     
Hal Itosis
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Dec 8, 2009, 04:17 PM
 
Double-click (and OSX should expand it for you).

<edit>

As far as the CLI goes, looks like this should also work:
ditto -x /path/to/archive.cpgz /path/to/target/folder/
( Last edited by Hal Itosis; Dec 8, 2009 at 04:37 PM. )
-HI-
     
SVass  (op)
Mac Elite
Join Date: Jul 2003
Location: Washington state
Status: Offline
Reply With Quote
Dec 11, 2009, 03:02 PM
 
Originally Posted by Hal Itosis View Post
Double-click (and OSX should expand it for you).

<edit>

As far as the CLI goes, looks like this should also work:
ditto -x /path/to/archive.cpgz /path/to/target/folder/
Thanks for the advice. I found that Stuffit Expander will work and No, OSX no longer works. I have Snow Leopard latest and my spouse's machine has Leopard and my old desktop has Tiger and double-clicking does not work on this new file type from Microsoft.
     
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Dec 11, 2009, 05:38 PM
 
That would surprise me, since CPGZ has long been the default format that Archive Utility uses to compress files (and it's been the format that installer packages use to compress file contents for as long as OS X has existed).

Could you perhaps create one of these files that OS X supposedly won't expand and post it online?

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Hal Itosis
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Dec 11, 2009, 07:42 PM
 
Originally Posted by SVass View Post
Thanks for the advice. I found that Stuffit Expander will work and No, OSX no longer works. I have Snow Leopard latest and my spouse's machine has Leopard and my old desktop has Tiger and double-clicking does not work on this new file type from Microsoft.
A "cpgz" file is a gzip-compressed cpio (Unix) archive.

With assistance from teh google, i found...
  • The original cpio utility was written by Dick Haight while working in AT&T's Unix Support Group. It appeared in 1977 as part of PWB/UNIX 1.0, the "Programmer's Work Bench" derived from Version 6 AT&T UNIX that was used internally at AT&T.
    .
  • The gzip (GNU zip) format was designed by Jean-Loup Gailly (around the mid-90's) and interestingly enough, the associated RFC seems to be authored by an Aladdin engineer.
So basically, cpgz is most definitely *not* some "new file type from Microsoft."

Note too how these (generic) info pages all mention Mac OS X:
File Extension .CPGZ Details
CPGZ File Extension - Open .CPGZ files
Description of CPGZ file extension

You didn't say what exactly does happen when double-clicking. [i.e., did it seem that the OS even *tried* to expand it? How about ditto -x from the command line? Did that fail as well?] Point being: the fact that double-clicking failed does not necessarily mean the OS can't expand .cpgz files -- rather, there may be something strange about that file which prevented the Finder/LaunchServices team from handing it off to the CoreServices Archive Utility.
-HI-
     
SVass  (op)
Mac Elite
Join Date: Jul 2003
Location: Washington state
Status: Offline
Reply With Quote
Dec 12, 2009, 02:25 PM
 
When I double click on a "new" zip file from a Windows Excel file (test.zip) , I get a file with a name like test.zip.cpzg
If I double click on that, I get a file named test2.zip
This happened both under Leopard on a Powerbook and Snow Leopard on my MacBook Pro.
Tiger claimed that the operation was "illegal". I am assuming that the file was created in a new version of Excel under Windows 7.
The actual file is available at
Super GW Similariity based upon half-identical segment count(20).zip - File Shared from Box.net - Free Online File Storage
Note that, as I said, Stuffit Expander worked.
sam
     
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Dec 12, 2009, 02:47 PM
 
Ah, that makes sense. The ZIP file is probably in a format that OS X doesn't know how to read (the built-in ZIP functionality is actually somewhat limited). Perhaps it is a Zip64 archive, a really old archive from the 90s, or uses an unsupported compression type. What's happening is: the default application for .zip files is set to Archive Utility, so the Finder attempts to open the file with AU when you double-click on it. However, Archive Utility is not recognizing it as an archive it can read, probably due to one of the aforementioned reasons, and thus it's treating it as an uncompressed file - and when it gets one of those, Archive Utility compresses it. And as I mentioned before, Archive Utility's default format is, for some reason, CPGZ.

So, you're not getting CPGZ files from Windows - Archive Utility is just making those when it encounters a ZIP file that it can't read. Unfortunately, I'm not at my computer right now (public machine in a library), so I can't download and look at the file to see what the reason for this is. It would be kind of interesting to see if the file opens in Pacifist, though - if it doesn't, then that's new functionality for me to add at some point.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Dec 12, 2009, 02:53 PM
 
The file decompressed just fine on Snow Leopard.
Vandelay Industries
     
Hal Itosis
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Dec 12, 2009, 03:55 PM
 
Originally Posted by Art Vandelay View Post
The file decompressed just fine on Snow Leopard.
And here in 10.5.8 (on a ppc G4) as well. Got a folder with 2 items:
Read About Sheet.txt
Super GW Similariity based upon half-identical segment count(20).xls


Only one "expansion" occurred.
-HI-
     
SVass  (op)
Mac Elite
Join Date: Jul 2003
Location: Washington state
Status: Offline
Reply With Quote
Dec 12, 2009, 04:17 PM
 
Sehr interessant.
I downloaded again and it works just as you said. I still have the old file and it doesn't work except in Stuffit.
Weird.
sam
     
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Dec 12, 2009, 04:51 PM
 
Huh. Maybe the file on your hard disk got damaged somehow.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:05 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,