Automic VaultAutomic Vault

brew

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

GNU awk utility. Version 5.4.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gawk

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gawk

MacPorts ports tree · lang/gawk/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add gawk

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

Debian aptverified · 92%
sudo apt install gawk

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

Fedora dnfverified · 92%
sudo dnf install gawk

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

Nixverified · 92%
nix profile install nixpkgs#gawk

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

Arch Linux pacmanverified · 92%
sudo pacman -S gawk

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

openSUSE zypperverified · 92%
sudo zypper install gawk

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

overview

Package summary

GNU awk utility

Commands and aliases

  • gawk
  • gawk-5.4.0
  • gawkbug

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 4 runtime dependencies.

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
gawkcliglobal executable
gawk-5.4.0cliglobal executable
gawkbugcliglobal 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 version5.4.0
manager updated
local dataok
upstreamnot checked
latest detectednot detected

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

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

install metadata

Package metadata

Package keybrew:gawk
Version5.4.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gawk
Homepagehttps://www.gnu.org/software/gawk/
Repositoryhttps://git.savannah.gnu.org/git/gawk.git
Upstream docshttps://www.gnu.org/software/gawk/manual
LicenseGPL-3.0-or-later
Source archivehttps://ftpmirror.gnu.org/gnu/gawk/gawk-5.4.0.tar.xz
Dependenciesgettext, gmp, mpfr, readline
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared
CaveatsGNU "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"

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegawk
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • 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%

gawk 1:5.2.1-2+b1

GNU awk, a pattern scanning and processing language

http://www.gnu.org/software/gawk/

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

gawk

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

gawk 1:5.2.1-2build3

GNU awk, a pattern scanning and processing language

http://www.gnu.org/software/gawk/

sudo apt install gawk
  • Section: interpreters
  • Architecture: amd64
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Gawk
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gawk from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

gawk 5.3.2-r2

GNU awk pattern-matching language

https://www.gnu.org/software/gawk/gawk.html

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

gawk-doc 5.3.2-r2

GNU awk pattern-matching language (documentation)

https://www.gnu.org/software/gawk/gawk.html

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

gawk 5.4.0-3.fc45

The GNU version of the AWK text processing utility

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

sudo dnf install gawk
  • License: GPL-3.0-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gawk
  • 8 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Gawk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gawk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gawk-all-langpacks 5.4.0-3.fc45

Additional localisation files for gawk utility

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

sudo dnf install gawk-all-langpacks
  • License: GPL-3.0-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gawk
  • 1 provides
  • normalized package name match
  • Matched by: Gawk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gawk-all-langpacks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gawk-devel 5.4.0-3.fc45

Header file for gawk extensions development

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

sudo dnf install gawk-devel
  • License: GPL-3.0-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gawk
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gawk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gawk-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gawk-doc 5.4.0-3.fc45

Additional documentation for gawk utility

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

sudo dnf install gawk-doc
  • License: GPL-3.0-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: gawk
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gawk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gawk-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gawk 5.4.0-1

GNU version of awk

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

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

gawk 5.4.0-1.1

Domain-specific language for text processing

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

sudo zypper install gawk
  • License: GPL-3.0-or-later
  • Category: Productivity/Text/Utilities
  • Architecture: x86_64
  • Source Package: gawk
  • 6 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: Gawk
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gawk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

gawk

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

gawk

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

main/gawk

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

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