macOS
brew install gziplocal Homebrew formula metadata
sudo port install gzipMacPorts ports tree · archivers/gzip/Portfile · 来源: api.github.com
安装
brew install gziplocal Homebrew formula metadata
sudo port install gzipMacPorts ports tree · archivers/gzip/Portfile · 来源: api.github.com
sudo apk add gzipAlpine Linux edge package indexes · gzip · 来源: dl-cdn.alpinelinux.org
sudo dnf install gzipFedora Rawhide package metadata · gzip · 来源: dl.fedoraproject.org
nix profile install nixpkgs#gzipnixpkgs package indexes · gzip · 来源: raw.githubusercontent.com
sudo pacman -S gzipArch Linux sync databases · gzip · 来源: geo.mirror.pkgbuild.com
sudo zypper install gzipopenSUSE Tumbleweed package metadata · gzip · 来源: download.opensuse.org
choco install gzipChocolatey community package catalog · gzip · 来源: community.chocolatey.org
scoop install main/gzipScoop official bucket manifest trees · bucket/gzip.json · 来源: api.github.com
winget install --id GnuWin32.Gzip -eWindows Package Manager source index · GnuWin32.Gzip · 来源: cdn.winget.microsoft.com
概览
Popular GNU data compression program
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gunzip | cli | 全局可执行文件 | |
gzexe | cli | 全局可执行文件 | |
gzip | cli | 全局可执行文件 | |
uncompress | cli | 全局可执行文件 | |
zcat | cli | 全局可执行文件 | |
zcmp | cli | 全局可执行文件 | |
zdiff | cli | 全局可执行文件 | |
zegrep | cli | 全局可执行文件 | |
zfgrep | cli | 全局可执行文件 | |
zforce | cli | 全局可执行文件 | |
zgrep | cli | 全局可执行文件 | |
zless | cli | 全局可执行文件 | |
zmore | cli | 全局可执行文件 | |
znew | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.gnu.org/software/gzip/
安装元数据
| 软件包键 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gzip |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gzip 1.13-1
GNU compression utilities
https://www.gnu.org/software/gzip/
sudo apt install gzipgzip
nix profile install nixpkgs#gzipgzip 1.12-1ubuntu3
GNU compression utilities
https://www.gnu.org/software/gzip/
sudo apt install gzipgzip-win32 1.12-1ubuntu3
GNU compression utility (win32 build)
https://www.gnu.org/software/gzip/
sudo apt install gzip-win32gzip 1.14-r2
Popular data compression program
https://www.gnu.org/software/gzip/
sudo apk add gzipgzip-doc 1.14-r2
Popular data compression program (documentation)
https://www.gnu.org/software/gzip/
sudo apk add gzip-docgzip 1.14-2.fc44
GNU data compression program
sudo dnf install gzipgzip 1.14-2
GNU compression utility
https://www.gnu.org/software/gzip/
sudo pacman -S gzipgzip 1.14-1.4
GNU Zip Compression Utilities
https://www.gnu.org/software/gzip/
sudo zypper install gzipzstd-gzip 1.5.7-4.2
zstd and zlib based gzip drop-in
https://github.com/facebook/zstd
sudo zypper install zstd-gzipgzip
sudo port install gzipgzip
choco install gzipmain/gzip
scoop install main/gzipGnuWin32.Gzip
winget install --id GnuWin32.Gzip -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.