Installing 7-Zip
7-Zip is available for Windows, Linux, and macOS. This guide covers multiple installation methods for each platform.Windows Installation
- Windows Installer
- Winget
- Chocolatey
- Build from Source
The easiest way to install 7-Zip on Windows is using the official installer:
Download the installer
Visit 7-zip.org and download the appropriate installer:
- 64-bit Windows: 7z####-x64.exe (recommended for modern systems)
- 32-bit Windows: 7z####.exe
- ARM64 Windows: 7z####-arm64.exe (for ARM-based Windows devices)
Run the installer
Double-click the downloaded executable and follow the installation wizard. The default installation directory is
C:\Program Files\7-Zip\.Verify installation
Open Command Prompt and verify 7-Zip is installed:You should see the 7-Zip help output with version information.
The Windows installer includes 7-Zip File Manager (7zFM.exe), Windows Shell integration, and all command-line tools.
Linux Installation
- Debian/Ubuntu
- RHEL/Fedora/CentOS
- Arch Linux
- Build from Source
Install 7-Zip using APT package manager:Or install the older p7zip package (note: outdated):
The
7zip package provides the modern 7-Zip version. The p7zip packages are based on an older 7-Zip version (16.02) and may not include the latest features.macOS Installation
- Homebrew
- MacPorts
- Build from Source
Install 7-Zip using Homebrew:Or install p7zip (older version):Verify installation:
Available Binaries
7-Zip provides different binaries for different use cases:| Binary | Description | Format Support |
|---|---|---|
| 7z (Windows) | Full-featured command-line version | All formats |
| 7zz (Linux/macOS) | Standalone console version | All formats |
| 7za | Standalone reduced version | 7z, xz, cab, zip, gzip, bzip2, tar |
| 7zr | Minimal standalone version | 7z only |
| 7zG (Windows) | GUI application | All formats |
| 7zFM (Windows) | File Manager interface | All formats |
On Linux and macOS, the primary binary is
7zz. On Windows, both 7z.exe and 7zz.exe are available, with 7z.exe being the traditional name.Verifying Installation
After installation, verify 7-Zip is working correctly:Differences: 7-Zip vs p7zip
There are two different Linux/macOS ports of 7-Zip:
- 7-Zip for Linux/macOS - Modern official port with all latest features from 7-Zip for Windows
- p7zip - Independent port, now outdated (last version 16.02)
Troubleshooting
Command not found
If you get “command not found” after installation: Linux/macOS:Permission denied (Linux/macOS)
If you get permission errors:Missing dependencies
If compilation fails with missing dependencies:Next Steps
Quick Start Guide
Now that 7-Zip is installed, learn the basic commands to compress and extract files