Automic VaultAutomic Vault

brew

Install gnu-indent with Homebrew, MacPorts

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

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gnu-indent

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gindent

MacPorts ports tree · devel/gindent/Portfile · source: api.github.com

overview

Package summary

C code prettifier

Commands and aliases

  • gindent

history

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.

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 10 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 1 build 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
gindentcliglobal 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 version2.2.13
manager updated
local dataok
upstreamnot checked
latest detectednot detected

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

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

install metadata

Package metadata

Package keybrew:gnu-indent
Version2.2.13
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gnu-indent
Homepagehttps://www.gnu.org/software/indent/
Repositoryhttps://git.savannah.gnu.org/cgit/indent.git
Upstream docshttps://www.gnu.org/software/indent/manual/indent.html
LicenseGPL-3.0-or-later
Source archivehttps://ftpmirror.gnu.org/gnu/indent/indent-2.2.13.tar.gz
Dependenciesgettext
Build dependenciestexinfo
Bottleavailable (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared
CaveatsGNU "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"

registry facts

Source database details

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

MacPorts94%

gindent

sudo port install gindent
  • installed executable or alias match
  • Matched by: Gindent
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/gindent/Portfile from https://api.github.com/repos/macports/macports-ports/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