Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
1  
Did you try with 7-Zip? –  user3463 Jul 2 '10 at 5:04
add comment

2 Answers

up vote 19 down vote accepted

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.

share|improve this answer
    
Neat, had no idea there was a hidden prefPane –  ghoppe Jul 2 '10 at 16:20
    
Nor did I. Great tip man! –  peelman Jul 3 '10 at 3:17
1  
Bizarre and good to know +1 –  Yar Oct 5 '10 at 21:29
add comment

IMHO the command line unzip tool should just unzip the specified file. It should not unpack double-zipped files.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.