# Install mawk with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Interpreter for the AWK Programming Language. Version 1.3.4-20260302 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:mawk
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mawk
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mawk
```

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

### Linux

- apk (92%):

```sh
sudo apk add mawk
```

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

- Debian apt (92%):

```sh
sudo apt install mawk
```

  Evidence: Debian stable package indexes: mawk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mawk
```

  Evidence: Fedora Rawhide package metadata: mawk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#mawk
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ma/mawk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install mawk
```

  Evidence: openSUSE Tumbleweed package metadata: mawk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:mawk
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mawk>
- **Version:** 1.3.4-20260302
- **Source summary:** Interpreter for the AWK Programming Language
- **Homepage:** <https://invisible-island.net/mawk/>
- **Repository:** <https://github.com/ThomasDickey/mawk-snapshots>
- **Upstream docs:** <https://invisible-island.net/mawk>
- **License:** GPL-2.0-only
- **Source archive:** <https://invisible-mirror.net/archives/mawk/mawk-1.3.4-20260302.tgz>
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- mawk (cli)
- mawk (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 1.3.4-20260302
- Local data: ok
- Upstream repository: https://invisible-island.net/mawk/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

mawk is a compact AWK interpreter used for fast pattern scanning, text processing, and shell scripting.

### Project history

The current official mawk page says Mike Brennan wrote mawk, that it had no maintainer for a time, and that Thomas E. Dickey adopted it in 2009 by starting with Debian package fixes and unresolved reports. The official changelog preserves the older 1.3 series history and shows the long maintenance gap being bridged by Debian patches and later upstream work.

The manpage frames mawk as a 'new awk' implementation of the AWK language defined by Aho, Kernighan, and Weinberger, with POSIX draft compatibility and a small set of implementation extensions.

### Adoption history

mawk's adoption has been strongest in Unix-like packaging culture. The official page lists package links for AIX, Arch, DragonFly BSD, Fedora, Fink, FreeBSD, Gentoo, Haiku, Homebrew, HPUX, MacPorts, Mageia, and others, and the input confirms distribution through common Linux and macOS package managers.

### How it is used

Users invoke `mawk` like other AWK implementations: short programs can be passed on the command line, longer programs via `-f`, and input comes from files or standard input. Its `-W` options expose mawk-specific behavior such as dump, interactive mode, POSIX mode, traditional mode, and version output.

### Why package nerds care

mawk matters because AWK is one of the classic packaging and build-script workhorses. It gives packagers a small, fast AWK implementation whose behavior must be tracked carefully against POSIX awk, BWK awk, and GNU awk.

### Timeline

- 1996: mawk 1.3 and 1.3.2 releases appear in the official changelog.
- 2008: Debian patches are incorporated into the later upstream maintenance history.
- 2009: Thomas E. Dickey adopts mawk maintenance.
- 2010: 1.3.4 maintenance snapshots begin after the original 1.3.3 plus Debian patches baseline.
- 2026: Official changelog still records active maintenance.

### Related projects

- awk, BWK awk, GNU awk, POSIX awk, Debian mawk package

### Sources

- <https://invisible-island.net/mawk/>
- <https://invisible-island.net/mawk/CHANGES.html>
- <https://invisible-island.net/mawk/manpage/mawk.html>
- source_facts.package-manager-url


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - mawk - 1.3.4.20250131-1: normalized package name match | Debian stable package indexes: mawk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Pattern scanning and text processing language | https://invisible-island.net/mawk/
- Nix - mawk: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mawk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mawk - 1.3.4.20240123-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mawk from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Pattern scanning and text processing language | https://invisible-island.net/mawk/
- apk - mawk - 1.3.4_p20260302-r0: normalized package name match | Alpine Linux edge package indexes: mawk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | mawk is an interpreter for the AWK Programming Language | https://invisible-island.net/mawk/
- apk - mawk-doc - 1.3.4_p20260302-r0: normalized package name match | Alpine Linux edge package indexes: mawk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | mawk is an interpreter for the AWK Programming Language (documentation) | https://invisible-island.net/mawk/
- dnf - mawk - 1.3.4-6.20260302.fc45: normalized package name match | Fedora Rawhide package metadata: mawk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Interpreter for the AWK programming language | https://invisible-island.net/mawk/
- zypper - mawk - 1.3.4.20240622-1.6: normalized package name match | openSUSE Tumbleweed package metadata: mawk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Implementation of New/POSIX AWK | https://invisible-island.net/mawk/mawk.html
- MacPorts - mawk: normalized package name match | MacPorts ports tree: lang/mawk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [goawk](https://www.automicvault.com/pkg/brew/goawk/) - Shares av.db curated category or tags: awk, cli, interpreter, language-runtime.
- [picoc](https://www.automicvault.com/pkg/brew/picoc/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, scripting.
- [brainfuck](https://www.automicvault.com/pkg/brew/brainfuck/) - Shares av.db curated category or tags: cli, interpreter, language-runtime.
- [cling](https://www.automicvault.com/pkg/brew/cling/) - Shares av.db curated category or tags: cli, interpreter, language-runtime.
- [rustpython](https://www.automicvault.com/pkg/brew/rustpython/) - Shares av.db curated category or tags: cli, interpreter, language-runtime.
- [wasm3](https://www.automicvault.com/pkg/brew/wasm3/) - Shares av.db curated category or tags: cli, interpreter, language-runtime.
- [cpi](https://www.automicvault.com/pkg/brew/cpi/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, scripting.
- [gauche](https://www.automicvault.com/pkg/brew/gauche/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, scripting.

## Combined YAML source

View the package source record on GitHub. [combined/mawk.yml](https://github.com/automic-vault/db/blob/main/combined/mawk.yml)


## Sources

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