Extract 7z files with standard linux tools?

7-zip archives can be extracted with p7zip (http://p7zip.sourceforge.net/) on Linux. It is included in the repositories of: Debian, Fedora, Ubuntu and possibly other distributions too.

List contents with (lower case L, for list):

7za l myarchive.7z

Extract contents:

7za x myarchive.7z

No. 7-Zip archives use LZMA and LZMA2, which are not supported by standard tools (they also use bzip2, but you still need to decode the header).


The "standard" way to work with 7-Zip archives on Unix is to use P7ZIP. But since the 7-Zip format was designed primarily for Windows, you shouldn't really expect P7ZIP to come installed on Linux distributions by default.

If you want the benefit of LZMA compression on Unix, prefer XZ Utils.