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

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

## インストール

```sh
sudo av install brew:gawk
```

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

### macOS

- Homebrew (100%):

```sh
brew install gawk
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gawk
```

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

### Linux

- apk (92%):

```sh
sudo apk add gawk
```

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

- Debian apt (92%):

```sh
sudo apt install gawk
```

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

- dnf (92%):

```sh
sudo dnf install gawk
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gawk
```

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

- pacman (92%):

```sh
sudo pacman -S gawk
```

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

- zypper (92%):

```sh
sudo zypper install gawk
```

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

### Windows

- Chocolatey (92%):

```sh
choco install gawk
```

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

- Scoop (92%):

```sh
scoop install main/gawk
```

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

## パッケージ情報

- **パッケージキー:** brew:gawk
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/gawk>
- **バージョン:** 5.4.1
- **ソース概要:** GNU awk utility
- **ホームページ:** <https://www.gnu.org/software/gawk/>
- **上流ドキュメント:** <https://www.gnu.org/software/gawk/>
- **ライセンス:** GPL-3.0-or-later
- **ソースアーカイブ:** <https://ftpmirror.gnu.org/gnu/gawk/gawk-5.4.1.tar.xz>
- **最終更新:** 2026-07-10T16:14:05Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- awk (cli)
- gawk (cli)
- gawk-5.4.1 (cli)
- gawkbug (cli)
- awk (エイリアス)
- gawk (エイリアス)
- gawk-5.4.1 (エイリアス)
- gawkbug (エイリアス)

## 依存関係

- gettext
- gmp
- mpfr
- readline

## インストール挙動

- post-install フック: 未定義
- 注意点: GNU "awk" has been installed as "gawk". If you need to use it as "awk", you can add a "gnubin" directory to your PATH from your ~/.bashrc and/or ~/.zshrc like: PATH="$HOMEBREW_PREFIX/opt/gawk/libexec/gnubin:$PATH"
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 5.4.1
- マネージャ更新日: 2026-07-10
- ローカルデータ: OK
- 上流リポジトリ: https://www.gnu.org/software/gawk/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

GNU Awk, usually packaged as `gawk`, is the GNU implementation of the AWK text-processing language. It is both a POSIX-style command-line utility and a scripting language for scanning records, matching patterns, and running actions over structured text.

### プロジェクトの歴史

AWK originated at Bell Labs and is named for Alfred Aho, Peter Weinberger, and Brian Kernighan. GNU Awk carries that language into the GNU system, implementing standard awk behavior along with GNU extensions, internationalization support, networking features, extension mechanisms, and extensive documentation.

### 採用の歴史

gawk became the default awk implementation in many GNU/Linux environments and is packaged across the major Unix-like package managers. Its broad package coverage reflects awk's status as part of the everyday Unix text-processing toolkit, used in shell scripts, build systems, log processing, reports, and one-liners.

### 使われ方

Users commonly invoke `awk` or `gawk` with short programs such as pattern-action rules on the command line, or with script files for larger transformations. The GNU manual documents command-line invocation, regular expressions, fields, records, arrays, functions, internationalization, debugging, profiling, and compatibility modes.

### パッケージ好きにとっての重要性

gawk is one of the canonical packages that makes a Unix userland feel complete. Package maintainers care about it because countless scripts assume an awk implementation, while GNU Awk specifically exposes GNU behavior that may differ from minimalist awks, mawk, BusyBox awk, or platform awk implementations.

### タイムライン

- 1970s: AWK was created at Bell Labs by Aho, Weinberger, and Kernighan.
- 1980s: GNU Awk began as the GNU project's implementation of awk.
- 1990s-2000s: gawk expanded beyond traditional awk with GNU extensions and a comprehensive Texinfo manual.
- 2020s: gawk remains maintained through GNU and Savannah and widely packaged as the GNU awk utility.

### Related projects

- gawk is related to the original awk and nawk implementations, POSIX awk, mawk, BusyBox awk, and other GNU text-processing tools such as sed and grep. The GNU project hosts the official source repository on Savannah.

### ソース

- <https://git.savannah.gnu.org/git/gawk.git>
- <https://savannah.gnu.org/projects/gawk>
- <https://www.gnu.org/software/gawk/>
- <https://www.gnu.org/software/gawk/manual/gawk.html>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gawk
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - gawk - 1:5.2.1-2+b1: normalized package name match | Debian stable package indexes: gawk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU awk, a pattern scanning and processing language | http://www.gnu.org/software/gawk/
- Nix - gawk: normalized package name match | nixpkgs package indexes: gawk from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - gawk - 1:5.2.1-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: gawk from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNU awk, a pattern scanning and processing language | http://www.gnu.org/software/gawk/
- apk - gawk - 5.3.2-r2: normalized package name match | Alpine Linux edge package indexes: gawk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU awk pattern-matching language | https://www.gnu.org/software/gawk/gawk.html
- apk - gawk-doc - 5.3.2-r2: normalized package name match | Alpine Linux edge package indexes: gawk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU awk pattern-matching language (documentation) | https://www.gnu.org/software/gawk/gawk.html
- dnf - gawk - 5.4.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: gawk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | The GNU version of the AWK text processing utility | https://www.gnu.org/software/gawk/
- dnf - gawk-all-langpacks - 5.4.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: gawk-all-langpacks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Additional localisation files for gawk utility | https://www.gnu.org/software/gawk/
- dnf - gawk-devel - 5.4.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: gawk-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Header file for gawk extensions development | https://www.gnu.org/software/gawk/
- dnf - gawk-doc - 5.4.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: gawk-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Additional documentation for gawk utility | https://www.gnu.org/software/gawk/
- pacman - gawk - 5.4.1-1: normalized package name match | Arch Linux sync databases: gawk from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | GNU version of awk | https://www.gnu.org/software/gawk/
- zypper - gawk - 5.4.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: gawk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Domain-specific language for text processing | https://www.gnu.org/software/gawk/
- MacPorts - gawk: normalized package name match | MacPorts ports tree: lang/gawk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - gawk: normalized package name match | Chocolatey community package catalog: gawk from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'
- Scoop - main/gawk: normalized package name match | Scoop official bucket manifest trees: bucket/gawk.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- Chocolatey - awk: installed executable or alias match | Chocolatey community package catalog: awk from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','authy-desktop'


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [gettext](https://pkg.so/ja/brew/gettext/) - Runtime dependency declared by Homebrew.
- [git-secret](https://pkg.so/ja/brew/git-secret/) - Popular package that depends on this formula.
- [translate-shell](https://pkg.so/ja/brew/translate-shell/) - Popular package that depends on this formula.
- [crosstool-ng](https://pkg.so/ja/brew/crosstool-ng/) - Popular package that depends on this formula.
- [pkgdiff](https://pkg.so/ja/brew/pkgdiff/) - Popular package that depends on this formula.
- [txt2man](https://pkg.so/ja/brew/txt2man/) - Popular package that depends on this formula.
- [m4](https://pkg.so/ja/brew/m4/) - Shares pkgdb curated category or tags: cli, developer-tools, gnu, text-processing.
- [grep](https://pkg.so/ja/brew/grep/) - Shares pkgdb curated category or tags: cli, developer-tools, gnu, text-processing.
- [diffutils](https://pkg.so/ja/brew/diffutils/) - Shares pkgdb curated category or tags: cli, developer-tools, gnu, text-processing.
- [wdiff](https://pkg.so/ja/brew/wdiff/) - Shares pkgdb curated category or tags: cli, developer-tools, gnu, text-processing.
- [choose-rust](https://pkg.so/ja/brew/choose-rust/) - Shares pkgdb curated category or tags: awk, cli, developer-tools, text-processing.
- [enscript](https://pkg.so/ja/brew/enscript/) - Shares pkgdb curated category or tags: cli, developer-tools, gnu, text-processing.
- [rargs](https://pkg.so/ja/brew/rargs/) - Shares pkgdb curated category or tags: awk, cli, developer-tools, text-processing.
- [gdb](https://pkg.so/ja/brew/gdb/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gmp, gnu.

## Combined YAML source

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


## ソース

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