Command-line tool
p7zip
brew/p7zip
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
7-Zip (high compression file archiver) implementation
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install 7zip scoop install nanazip
macOS
brew install p7zip
Linux
brew install p7zip
[a]dd a file or directory to a new or existing archive
7z a path/to/archive.7z path/to/file_or_directory
Encrypt an existing archive (including filenames)
7z a path/to/encrypted.7z -ppassword -mhe=on path/to/archive.7z
E[x]tract an archive preserving the original directory structure
7z x path/to/archive.7z
Related command-line tools
- sevenzip
7-Zip is a file archiver with a high compression ratio - 7-Zip
File archiver with a high compression ratio. archive archiver compress compression extract extractor unzip zip 压缩 归档… - 7-Zip ZS
File archiver with a high compression ratio. utility compression zip tool file-compression 7zip 7z zstd brotli 7-zip… - 7-Zip ZS Non Darkmode
File archiver with a high compression ratio. utility compression zip file-compression 7zip 7z zstd brotli 7-zip flzma2… - 7zr
File archiver with a high compression ratio. Similar to `7z` except that it only supports 7z files. extractor unzip… - zpaq
Incremental, journaling command-line archiver - dwarfs
Fast high compression read-only file system for Linux, Windows, and macOS - Karuzip
Karuzip (Windows package; no description in the winget index) archive archiver compression extract unzip zip rar 7z…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents