Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

p7zip

> 编程语言
Open source

A new p7zip fork with additional codecs and improvements (forked from https://sourceforge.net/projects/sevenzip/ AND https://sourceforge.net/projects/p7zip/).

947 stars0 likes1 views
WebsiteGitHub

About

A new p7zip fork with additional codecs and improvements (forked from https://sourceforge.net/projects/sevenzip/ AND https://sourceforge.net/projects/p7zip/).

p7zip-zstd

The original intention of p7zip is to make 7z run on unix-like systems. The latest 7zip already supports unix systems, so the new version of this project is not just a derivative of p7zip. It is also a derivative of 7zip. To distinguish it from the 7zip project, I decided to use p7zip-zstd to name the new version (since this project is also a derivative of the 7-Zip-zstd project). Thanks to Igor Pavlov, author of 7zip, and Tino Reichardt, author of 7-Zip-zstd. and all 7zip community contributors and users.

7zz with extension method

This is the place for 7zz (Well known as 7zip-22.00 Linux version) to include major modern codecs such as Brotli, Fast LZMA2, LZ4, LZ5, Lizard and Zstd. In order to support multithreading for those addional codecs, this project depends on the Multithreading Library.

Codec overview

  1. Zstandard v1.5.2 is a real-time compression algorithm, providing high compression ratios. It offers a very wide range of compression / speed trade-off, while being backed by a very fast decoder.

    • Levels: 1..22
  2. LZ4 v1.9.3 is lossless compression algorithm, providing compression speed at 400 MB/s per core (0.16 Bytes/cycle). It features an extremely fast decoder, with speed in multiple GB/s per core (0.71 Bytes/cycle). A high compression derivative, called LZ4_HC, is available, trading customizable CPU time for compression ratio.

    • Levels: 1..12
  3. Fast LZMA2 v1.0.1 is a LZMA2 compression algorithm, 20% to 100% faster than normal LZMA2 at levels 5 and above, but with a slightly lower compression ratio. It uses a parallel buffered radix matchfinder and some optimizations from Zstandard. The codec uses much less additional memory per thread than standard LZMA2.

    • Levels: 1..9
  4. Brotli v1.0.9 is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

    • Levels: 0..11
  5. LZ5 v1.5 is a modification of LZ4 which gives a better ratio at cost of slower compression and decompression.

    • Levels: 1..15
  6. Lizard v1.0 is an efficient compressor with very fast decompression. It achieves compression ratio that is comparable to zip/zlib and zstd/brotli (at low and medium compression levels) at decompression speed of 1000 MB/s and faster.

    • Levels 10..19 (fastLZ4) are designed to give about 10% better decompression speed than LZ4
    • Levels 20..29 (LIZv1) are designed to give better ratio than LZ4 keeping 75% decompression speed
    • Levels 30..39 (fastLZ4 + Huffman) adds Huffman coding to fastLZ4
    • Levels 40..49 (LIZv1 + Huffman) give the best ratio, comparable to zlib and low levels of zstd/brotli, but with a faster decompression speed
  7. Lzham v1_0_stable1 is a lossless data compression codec written in C/C++ (specifically C++03), with a compression ratio similar to LZMA but with 1.5x-8x faster decompression speed.

    • Levels: 1..9
    • Level: 1 best speed
    • Level: 9 best compression
    • Level: 10 best with extreme parsing (can be very slow; not recommended)

Build Binary

(Currently only supports CLI, if you want to do GUI please contact us)

  1. Download src:
bash
   git clone -b p7zip22.00 https://github.com/jinfeihan57/p7zip.git
  1. Use makefile to compile and build the binary 7zz:
bash
   cd p7zip/CPP/7zip/Bundles/Alone2 && make -f makefile.gcc
   OR
   cd p7zip/CPP/7zip/Bundles/Alone2 && make -f ../../cmpl_gcc.mak

If you want build 7za:

bash
   cd p7zip/CPP/7zip/Bundles/Alone && make -f makefile.gcc
   OR
   cd p7zip/CPP/7zip/Bundles/Alone && make -f ../../cmpl_gcc.mak

7zr:

bash
   cd p7zip/CPP/7zip/Bundles/Alone7z && make -f makefile.gcc
   OR
   cd p7zip/CPP/7zip/Bundles/Alone7z && make -f ../../cmpl_gcc.mak

or build 7z.so:

bash
   cd p7zip/CPP/7zip/Bundles/Format7zF && make -f makefile.gcc
   OR
   cd p7zip/CPP/7zip/Bundles/Format7zF && make -f ../../cmpl_gcc.mak
  1. Install & Uninstall
Install:
   // build with sudo make -f makefile.gcc
   cd p7zip/CPP/7zip/Bundles/Alone2 && sudo make -f makefile.gcc install
   OR
   // build with  make -f ../../cmpl_gcc.mak
   cd p7zip/CPP/7zip/Bundles/Alone2 && sudo make -f ../../cmpl_gcc.mak install
Unstall:
   // install with sudo make -f makefile.gcc install
   cd p7zip/CPP/7zip/Bundles/Alone2 && sudo make -f makefile.gcc uninstall
   OR
   // install with sudo make -f ../../cmpl_gcc.mak install
   cd p7zip/CPP/7zip/Bundles/Alone2 && sudo make -f ../../cmpl_gcc.mak uninstall
  1. Test:
   ./_o/7zz i
  1. The output should look like this:
…

Check

p7zip_test_utils is a separate project.

  • Check Usage
bash
  git clone https://github.com/jinfeihan57/p7zip_test_utils.git
  cd p7zip_test_utils/check
  // check 7zz program
  bash check.sh path_of_7zz/7zz

Usage

  • You can create .7z files, with LZ4, Fast LZMA2, Brotli, LZ5, Lizard, Lzham and Zstandard method.
7z a archiv.7z -m0=zstd
7z a archiv.7z -m0=zstd -mx3
7z a archiv.7z -m0=zstd -mx22
7z a archiv.7z -m0=lz4 -mxN  ...

License and redistribution

  • the same as the Mainline 7-Zip, which means GNU LGPL

Links

  • 7-Zip Homepage

Version Information

  • 7zz Version 22.00
    • LZ4 Version 1.9.3
    • Zstandard Version 1.5.2
    • Fast LZMA2 Version v1.0.1
    • Brotli Version v1.0.9
    • LZ5 Version v1.5
    • Lizard Version 1.0
    • Lzham v1_0_stable1

Working Plan

  • check here

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C7ziparchivebrotlicompression

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言