Skip to content

How to decompress password protected zip file on MacOS/Linux Terminal



Sometimes, we come across password-protected ZIP files that we need to decompress. However, it can be a little tricky to figure out how to decompress these files, especially if you’re not familiar with the process. In this blog post, we’ll be discussing how to decompress password-protected ZIP files on MacOS and Linux.


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

unsupported compression method 99


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

Leave a message

  • Welcome to visit the knowledge base of SRE and DevOps!
  • License under CC BY-NC 4.0
  • Made with Material for MkDocs and improve writing by generative AI tools
  • Copyright issue feedback, replace # with @