I recently downloaded a large number of GIS data files from a government agency to a file server and need to unzip all of them via the command line. However, unzip filename.zip is returning "Unsupported compression method 14". What does this mean? How can I extract the files?
2 Answers
These files were compressed using the LZMA algorithm (possibly using WinZip). LZMA archives are not supported by the unzip command. I found that I could extract these files using 7z instead, as follows:
- Install p7zip (from source or package manager)
7z x filename.zip
- WinZip specific compression method codes are available here.jscott– jscott2011-09-30 00:35:26 +00:00Commented Sep 30, 2011 at 0:35
If You still receive unsupported format warning, You can install p7zip-full package.
p7zip-full provides 7z and 7za which support more compression formats. For example for extracting the file zipfile.zip
- sudo apt-get install p7zip-full
- 7za e zipfile.zip