Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 gzip

查看 gzip 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gzip

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gzip

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gzip

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

Debian apt已验证 · 92%
sudo apt install gzip

Debian stable package indexes · gzip · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install gzip

Fedora Rawhide package metadata · gzip · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#gzip

nixpkgs package indexes · gzip · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S gzip

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

openSUSE zypper已验证 · 92%
sudo zypper install gzip

openSUSE Tumbleweed package metadata · gzip · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install gzip

Chocolatey community package catalog · gzip · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/gzip

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

Windows Package Manager已验证 · 92%
winget install --id GnuWin32.Gzip -e

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

概览

软件包摘要

Popular GNU data compression program

命令和别名

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

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:compress

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gunzipcli全局可执行文件
gzexecli全局可执行文件
gzipcli全局可执行文件
uncompresscli全局可执行文件
zcatcli全局可执行文件
zcmpcli全局可执行文件
zdiffcli全局可执行文件
zegrepcli全局可执行文件
zfgrepcli全局可执行文件
zforcecli全局可执行文件
zgrepcli全局可执行文件
zlesscli全局可执行文件
zmorecli全局可执行文件
znewcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.14
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

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

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://www.gnu.org/software/gzip/none 置信度

安装元数据

软件包元数据

软件包键brew:gzip
版本1.14
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gzip
主页https://www.gnu.org/software/gzip/
仓库https://git.savannah.gnu.org/git/gzip.git
上游文档https://www.gnu.org/software/gzip/manual
许可证GPL-3.0-or-later
源码归档https://ftpmirror.gnu.org/gnu/gzip/gzip-1.14.tar.gz
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

gzip 1.13-1

GNU compression utilities

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

sudo apt install gzip
  • Section: utils
  • Architecture: amd64
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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