Skip to content

Decompress password protected zip file

Problem

Sometimes decompressing password protected zip file with unzip failed with the following prompt

unsupported compression method 99

Solution

On MacOS, could install p7zip with brew

brew install p7zip

On Linux Debian/Ubuntu

sudo apt-get install p7zip-full

and retry with 7z command

7z x archive.zip -pYOURPASSWORD

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try iOS App