Command-line tool
gzip
brew/gzip
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Popular GNU data compression program archive gnuwin32 gzip
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id GnuWin32.Gzip -e scoop install gzip
macOS
brew install gzip
Linux
brew install gzip
Compress a file, replacing it with a `gzip` archive
gzip path/to/file
Decompress a file, replacing it with the original uncompressed version
gzip -d path/to/file.gz
Display the name and reduction percentage for each file compressed
gzip -v path/to/file.gz
Related command-line tools
- lzip
LZMA-based compression program similar to gzip or bzip2 - gnu-tar
GNU version of the tar archiving utility - rzip
File compression tool (like gzip or bzip2) - libdeflate
Heavily optimized DEFLATE/zlib/gzip compression and decompression - pigz
Parallel gzip - Winix Squeeze
Winix Squeeze (Windows package; no description in the winget index) developer-tools archive compression cli portable… - cmix
Data compression program with high compression ratio - pax
Portable Archive Interchange archive tool
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents