Automic VaultAutomic Vault

brew

Install gzip with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Popular GNU data compression program. Version 1.14 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gzip

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gzip

MacPorts ports tree · archivers/gzip/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add gzip

Alpine Linux edge package indexes · gzip · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install gzip

Debian stable package indexes · gzip · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install gzip

Fedora Rawhide package metadata · gzip · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#gzip

nixpkgs package indexes · gzip · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S gzip

Arch Linux sync databases · gzip · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install gzip

openSUSE Tumbleweed package metadata · gzip · source: download.opensuse.org

Windows

Chocolateyverified · 92%
choco install gzip

Chocolatey community package catalog · gzip · source: community.chocolatey.org

Scoopverified · 92%
scoop install main/gzip

Scoop official bucket manifest trees · bucket/gzip.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id GnuWin32.Gzip -e

Windows Package Manager source index · GnuWin32.Gzip · source: cdn.winget.microsoft.com

overview

Package summary

Popular GNU data compression program

Commands and aliases

  • gunzip
  • gzexe
  • gzip
  • uncompress
  • zcat
  • zcmp
  • zdiff
  • zegrep
  • zfgrep
  • zforce
  • zgrep
  • zless
  • zmore
  • znew

history

Project history and usage

GNU gzip is one of the canonical Unix command-line compression tools and the reference utility behind the .gz file format. It became important because it replaced the patent-burdened Unix compress program with a free software tool, a better compression ratio, and a stream-friendly format that became deeply embedded in source distribution, logs, tarballs, package systems, and network protocols.

Project history

The GNU project describes gzip as originally written by Jean-loup Gailly, with Mark Adler writing the decompression part. GNU explains the motivation plainly: gzip was developed as a replacement for compress because Unisys and IBM patents covered the LZW algorithm used by compress. The superior compression ratio was an additional benefit.

The gzip format was later documented in RFC 1952 in May 1996. The RFC defines a lossless compressed data format that is CPU-, operating-system-, file-system-, and character-set-independent, can operate as a stream, provides compression comparable to strong general-purpose methods, can be implemented without the patent problems that affected compress, and is compatible with the widely used gzip utility.

gzip's design is deliberately single-file and stream oriented. The separate gzip.org page summarizes that distinction: gzip refers both to the utility and to the associated compressed data format, producing files that generally use the .gz suffix. That simplicity explains why tar.gz became the default source-distribution shape: tar groups files and metadata, gzip compresses the byte stream.

Adoption history

gzip spread through GNU and Unix-like systems because it solved a legal and practical packaging problem at the same time. Source archives, FTP sites, mailing-list patches, backup scripts, log rotation, and package build systems all needed a compression utility that could be redistributed freely and used in pipelines.

The supplied package facts show broad package-manager normalization: apk, Homebrew, Chocolatey, Debian, dnf, MacPorts, Nix, pacman, Scoop, Ubuntu, winget, zypper, and other ecosystems carry gzip. That ubiquity is expected for a base-system utility, but it is also historically important: package managers rely on gzip both as a package and as infrastructure for other packages' source archives, compressed metadata, and logs.

How it is used

gzip compresses and decompresses streams or single files; gunzip reverses compression; zcat writes decompressed content to standard output; and companion scripts such as zgrep, zdiff, zless, zmore, zcmp, gzexe, zforce, and znew make compressed files act more like ordinary Unix text inputs. The GNU manual covers invocation, examples, advanced use, environment behavior, tapes, and known problems.

The format's streamability is why gzip is common in shell pipelines and data interchange. RFC 1952 explicitly calls out producing and consuming data streams with bounded intermediate storage, which fits Unix filters, HTTP/content encoding history, archival transfer, and ETL-style processing.

Why package nerds care

gzip is package infrastructure disguised as a small CLI. Package nerds care because .tar.gz source archives, compressed man pages, compressed logs, bootstrap environments, and source mirrors all assume gzip semantics. It is also a lesson in why legal constraints shape technical defaults: the LZW patent problem pushed free systems toward gzip, and the resulting format stuck.

The gzip family also anchors comparisons with related tools. zlib provides library support for gzip streams, pigz parallelizes gzip-compatible compression, zip is a different archive format, and modern compressors such as xz, zstd, and brotli often coexist with gzip rather than replacing it outright because .gz remains universally understood.

Timeline

  • Early 1990s: Jean-loup Gailly and Mark Adler wrote gzip as a replacement for Unix compress.
  • 1996: RFC 1952 documented the gzip file format specification version 4.3.
  • 1990s: gzip became the common compressor for tar source archives and Unix data streams.
  • 2000s: gzip remained part of base GNU and Unix-like toolchains while parallel and higher-ratio compressors appeared around it.
  • 2010s-2020s: gzip continued to be packaged across Linux distributions, BSD-adjacent package systems, macOS package managers, and Windows package ecosystems.

Related projects

  • gzip is directly related to compress, the LZW-based Unix utility it replaced; tar, which commonly pairs with gzip to produce .tar.gz archives; zlib, which provides DEFLATE/gzip library support; pigz, a parallel gzip implementation; and RFC 1951 DEFLATE, the compression method carried inside the gzip wrapper.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:compress

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gunzipcliglobal executable
gzexecliglobal executable
gzipcliglobal executable
uncompresscliglobal executable
zcatcliglobal executable
zcmpcliglobal executable
zdiffcliglobal executable
zegrepcliglobal executable
zfgrepcliglobal executable
zforcecliglobal executable
zgrepcliglobal executable
zlesscliglobal executable
zmorecliglobal executable
znewcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.14
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://www.gnu.org/software/gzip/

  • infoNo package-manager update timestamp was available.low confidence
  • infoRelease/tag comparison is only available for GitHub repositories.https://www.gnu.org/software/gzip/none confidence

install metadata

Package metadata

Package keybrew:gzip
Version1.14
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gzip
Homepagehttps://www.gnu.org/software/gzip/
Repositoryhttps://git.savannah.gnu.org/git/gzip.git
Upstream docshttps://www.gnu.org/software/gzip/manual
LicenseGPL-3.0-or-later
Source archivehttps://ftpmirror.gnu.org/gnu/gzip/gzip-1.14.tar.gz
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegzip
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

gzip 1.13-1

GNU compression utilities

https://www.gnu.org/software/gzip/

sudo apt install gzip
  • Section: utils
  • Architecture: amd64
  • 1 optional deps
  • normalized package name match
  • Matched by: Gzip
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gzip from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gzip

nix profile install nixpkgs#gzip
  • normalized package name match
  • Matched by: Gzip
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: gzip from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

gzip 1.12-1ubuntu3

GNU compression utilities

https://www.gnu.org/software/gzip/

sudo apt install gzip
  • Section: utils
  • Architecture: amd64
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Gzip
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gzip from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gzip-win32 1.12-1ubuntu3

GNU compression utility (win32 build)

https://www.gnu.org/software/gzip/

sudo apt install gzip-win32
  • Section: universe/utils
  • Architecture: all
  • Source Package: gzip
  • 1 optional deps
  • normalized package name match
  • Matched by: Gzip
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gzip-win32 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gzip 1.14-r2

Popular data compression program

https://www.gnu.org/software/gzip/

sudo apk add gzip
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: gzip
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gzip
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gzip from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

gzip-doc 1.14-r2

Popular data compression program (documentation)

https://www.gnu.org/software/gzip/

sudo apk add gzip-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: gzip
  • normalized package name match
  • Matched by: Gzip
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gzip-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

gzip 1.14-2.fc44

GNU data compression program

https://www.gzip.org/

sudo dnf install gzip
  • License: GPL-3.0-or-later AND GFDL-1.3-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gzip
  • 4 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: Gzip
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gzip from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gzip 1.14-2

GNU compression utility

https://www.gnu.org/software/gzip/

sudo pacman -S gzip
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 5 dependencies
  • 3 optional deps
  • normalized package name match
  • Matched by: Gzip
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gzip from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz
zypper95%

gzip 1.14-1.4

GNU Zip Compression Utilities

https://www.gnu.org/software/gzip/

sudo zypper install gzip
  • License: GPL-3.0-or-later
  • Category: Productivity/Archiving/Compression
  • Architecture: x86_64
  • Source Package: gzip
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gzip
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gzip from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

zstd-gzip 1.5.7-4.2

zstd and zlib based gzip drop-in

https://github.com/facebook/zstd

sudo zypper install zstd-gzip
  • License: BSD-3-Clause AND GPL-2.0-only
  • Category: Productivity/Archiving/Compression
  • Architecture: x86_64
  • Source Package: zstd
  • 1 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Gzip
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: zstd-gzip from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

gzip

sudo port install gzip
  • normalized package name match
  • Matched by: Gzip
MacPorts ports tree · api.github.com · MacPorts ports tree: archivers/gzip/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

gzip

choco install gzip
  • normalized package name match
  • Matched by: Gzip
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: gzip from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','gpg4win-vanilla'
Scoop95%

main/gzip

scoop install main/gzip
  • normalized package name match
  • Matched by: Gzip
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/gzip.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

GnuWin32.Gzip

winget install --id GnuWin32.Gzip -e
  • normalized package name match
  • Matched by: Gzip
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: GnuWin32.Gzip from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment