How to decompress password protected zip file on MacOS/Linux Terminal
Introduction
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.
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