# Install gnu-indent with Homebrew, MacPorts

C code prettifier. Version 2.2.13 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:gnu-indent
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gnu-indent
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gindent
```

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

## Package facts

- **Package key:** brew:gnu-indent
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gnu-indent>
- **Version:** 2.2.13
- **Source summary:** C code prettifier
- **Homepage:** <https://www.gnu.org/software/indent/>
- **Repository:** <https://git.savannah.gnu.org/cgit/indent.git>
- **Upstream docs:** <https://www.gnu.org/software/indent/manual/indent.html>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://ftpmirror.gnu.org/gnu/indent/indent-2.2.13.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gindent (cli)
- gindent (alias)

## Dependencies

- gettext

## Build dependencies

- texinfo

## Install behavior

- Post-install hook: not defined
- Caveats: GNU "indent" has been installed as "gindent". If you need to use it as "indent", you can add a "gnubin" directory to your PATH from your bashrc like: PATH="$HOMEBREW_PREFIX/opt/gnu-indent/libexec/gnubin:$PATH"
- Bottle: available on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.2.13
- Local data: ok
- Upstream repository: https://www.gnu.org/software/indent/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GNU indent is the GNU Project's C source formatter, a command-line tool for changing whitespace and layout without changing program meaning. Its manual describes it as a formatter for C programs that can make code easier to read and convert between styles.

### Project history

The GNU manual records Free Software Foundation copyright years beginning in 1989 and describes behavioral changes across early GNU indent releases, including GNU-style indentation as the default from version 1.2 and a revised command format from version 1.3. The formatter retained compatibility concepts from older indent implementations, including an option preset for the original Berkeley style, while making GNU style a first-class default.

### Adoption history

GNU indent became part of the long-lived GNU command-line toolchain for projects that wanted reproducible C formatting before newer formatters became widespread. Its homepage points users to GNU mirrors, Savannah development, Info and man documentation, and the GNU bug-tracking workflow, placing it in the same distribution culture as other standalone GNU utilities.

### How it is used

Practitioners use GNU indent to reformat C source files, write formatted output to a separate file or standard output, and select known style presets such as GNU, K&R, Berkeley, or Linux. It also supports a profile file mechanism, so teams or individual developers can keep repeated formatting options outside the command line.

### Why package nerds care

For package maintainers, GNU indent is a small but characteristic GNU utility: mostly invoked as a build or maintenance tool, sensitive to C dialect details, and useful when a project wants GNU formatting behavior rather than the indent variant supplied by another Unix.

### Timeline

- 1989: GNU indent manual copyright history begins in the Free Software Foundation manual.
- Version 1.2: GNU style became the default indentation style.
- Version 1.3: GNU indent adopted the command forms documented in later manuals.
- 2023: Release notes for version 2.2.13 describe fixes and translation updates.

### Related projects

- GNU indent belongs to the family of Unix source-formatting tools and is often compared with BSD indent and newer C-family formatters such as clang-format.

### Sources

- <https://git.savannah.gnu.org/cgit/indent.git/plain/NEWS>
- <https://www.gnu.org/software/indent/>
- <https://www.gnu.org/software/indent/manual/indent.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gnu-indent
- **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

- MacPorts - gindent: installed executable or alias match | MacPorts ports tree: devel/gindent/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [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.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [texinfo](https://www.automicvault.com/pkg/brew/texinfo/) - Build dependency declared by Homebrew.
- [cljfmt](https://www.automicvault.com/pkg/brew/cljfmt/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [gci](https://www.automicvault.com/pkg/brew/gci/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [snakefmt](https://www.automicvault.com/pkg/brew/snakefmt/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [stylish-haskell](https://www.automicvault.com/pkg/brew/stylish-haskell/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [stylua](https://www.automicvault.com/pkg/brew/stylua/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [yapf](https://www.automicvault.com/pkg/brew/yapf/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [astyle](https://www.automicvault.com/pkg/brew/astyle/) - Shares av.db curated category or tags: c, c-plus-plus, cli, developer-tools, formatter.
- [beautysh](https://www.automicvault.com/pkg/brew/beautysh/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.
- [gnu-complexity](https://www.automicvault.com/pkg/brew/gnu-complexity/) - Package names and metadata indicate a similar tool family. Shared terms: c, cli, code, developer, developer-tools.
- [gnu-barcode](https://www.automicvault.com/pkg/brew/gnu-barcode/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, gnu.
- [gnu-sed](https://www.automicvault.com/pkg/brew/gnu-sed/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, gnu.

## Combined YAML source

View the package source record on GitHub. [combined/gnu-indent.yml](https://github.com/automic-vault/db/blob/main/combined/gnu-indent.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
