I have a zip file that contains another type of archive (in this case, a jee app server WAR file, but this happens with other contained archive types as well). When I unzip the zip file, instead of presenting me with the contained .war file, the war file is decompressed as well. Is there a way around this? I've tried with 'The Unarchiver', 'Archive Utility', and the command line 'unzip' utility.
Macos – In Mac OS X, how can I unzip a zip file without unzipping its contents
macososx-snow-leopardzip
Related Question
- Cannot open large concatenated zip file with unzip, though it opened fine with Archive Utility, get a central directory error
- Macos – Mac OS: Unable to expand zip file
- MAC OSX: How to unzip password protected .zip file
- Not enough disk space to unzip 50 GB file on Ubuntu 16.04: Can I extract and reduce zip file size at the same time
Best Answer
Open the Archive Utility (/System/Library/CoreServices/Archive Utility), open its preferences (in the Archive Utility > Preferences menu), and uncheck the "Keep expanding if possible" option.
p.s. If you want to get at these prefs easily (e.g. if you want to be able to switch this setting on & off at whim), you can install the Archive Utility prefs into System Preferences by opening the Archive Utility package (right-click or control-click on the application, and select Show Package Contents), then navigate to Contents/Resources, and double-click Archives.prefPane to install it.