# gzip を Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget でインストール

gzip のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:gzip
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gzip
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gzip
```

  証拠: MacPorts ports tree: archivers/gzip/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gzip
```

  証拠: Alpine Linux edge package indexes: gzip from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install gzip
```

  証拠: Debian stable package indexes: gzip from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gzip
```

  証拠: Fedora Rawhide package metadata: gzip from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gzip
```

  証拠: nixpkgs package indexes: gzip from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S gzip
```

  証拠: Arch Linux sync databases: gzip from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gzip
```

  証拠: openSUSE Tumbleweed package metadata: gzip from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install gzip
```

  証拠: Chocolatey community package catalog: gzip from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','google-workspace-sync'

- Scoop (92%):

```sh
scoop install main/gzip
```

  証拠: Scoop official bucket manifest trees: bucket/gzip.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id GnuWin32.Gzip -e
```

  証拠: Windows Package Manager source index: GnuWin32.Gzip from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:gzip
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.14
- **ソース概要:** Popular GNU data compression program
- **ホームページ:** <https://www.gnu.org/software/gzip/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- gunzip (エイリアス)
- gzexe (エイリアス)
- gzip (エイリアス)
- uncompress (エイリアス)
- zcat (エイリアス)
- zcmp (エイリアス)
- zdiff (エイリアス)
- zegrep (エイリアス)
- zfgrep (エイリアス)
- zforce (エイリアス)
- zgrep (エイリアス)
- zless (エイリアス)
- zmore (エイリアス)
- znew (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.14
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://git.savannah.gnu.org/git/gzip.git>
- <https://www.gnu.org/software/gzip/>
- <https://www.gnu.org/software/gzip/manual/gzip.html>
- <https://www.gzip.org/>
- <https://www.ietf.org/rfc/rfc1952.txt>


## セキュリティノート

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

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## 他のパッケージマネージャ記録

- Debian apt - gzip - 1.13-1: normalized package name match | Debian stable package indexes: gzip from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU compression utilities | https://www.gnu.org/software/gzip/
- Nix - gzip: normalized package name match | nixpkgs package indexes: gzip from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - gzip - 1.12-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: gzip from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNU compression utilities | https://www.gnu.org/software/gzip/
- Ubuntu apt - gzip-win32 - 1.12-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: gzip-win32 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU compression utility (win32 build) | https://www.gnu.org/software/gzip/
- apk - gzip - 1.14-r2: normalized package name match | Alpine Linux edge package indexes: gzip from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Popular data compression program | https://www.gnu.org/software/gzip/
- apk - gzip-doc - 1.14-r2: normalized package name match | Alpine Linux edge package indexes: gzip-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Popular data compression program (documentation) | https://www.gnu.org/software/gzip/
- dnf - gzip - 1.14-4.fc45: normalized package name match | Fedora Rawhide package metadata: gzip from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GNU data compression program | https://www.gzip.org/
- pacman - gzip - 1.14-2: normalized package name match | Arch Linux sync databases: gzip from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | GNU compression utility | https://www.gnu.org/software/gzip/
- zypper - gzip - 1.14-2.2: normalized package name match | openSUSE Tumbleweed package metadata: gzip from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | GNU Zip Compression Utilities | https://www.gnu.org/software/gzip/
- zypper - zstd-gzip - 1.5.7-5.2: normalized package name match | openSUSE Tumbleweed package metadata: zstd-gzip from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | zstd and zlib based gzip drop-in | https://github.com/facebook/zstd
- MacPorts - gzip: normalized package name match | MacPorts ports tree: archivers/gzip/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - gzip: normalized package name match | Chocolatey community package catalog: gzip from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','google-workspace-sync'
- Scoop - main/gzip: normalized package name match | Scoop official bucket manifest trees: bucket/gzip.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - GnuWin32.Gzip: normalized package name match | Windows Package Manager source index: GnuWin32.Gzip from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/gzip.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gzip.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
