# gnu-complexity mit Homebrew, apt, Nix, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für gnu-complexity in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install gnu-complexity
```

  Evidenz: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install complexity
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#complexity
```

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

- zypper (92%):

```sh
sudo zypper install complexity
```

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

## Paketfakten

- **Paketschlüssel:** brew:gnu-complexity
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/gnu-complexity>
- **Version:** 1.13
- **Quellzusammenfassung:** Measures complexity of C source
- **Homepage:** <https://www.gnu.org/software/complexity/>
- **Upstream-Dokumentation:** <https://www.gnu.org/software/complexity/>
- **Lizenz:** GPL-3.0-or-later
- **Quellarchiv:** <https://ftpmirror.gnu.org/gnu/complexity/complexity-1.13.tar.xz>
- **Zuletzt aktualisiert:** 2026-08-02T20:52:07+09:00
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- complexity (cli)
- cx-vs-mc (cli)
- complexity (Alias)
- cx-vs-mc (Alias)

## Abhängigkeiten

- autogen

## Build-Abhängigkeiten

- autoconf
- automake

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 1.13
- Manager aktualisiert: 2026-08-02
- lokale Daten: OK
- Upstream-Repository: https://www.gnu.org/software/complexity/
- Info: Release/tag comparison is only available for GitHub repositories.
## Projektgeschichte und Nutzung

GNU Complexity is a small GNU static-analysis tool for measuring the complexity of C functions, designed as a more human-comprehension-oriented alternative to simple McCabe-style path counts.

### Projektgeschichte

The GNU Complexity manual documents version 0.4 as of May 2011 and describes a tool by Bruce Korb for analyzing C function complexity. Its rationale is explicit: McCabe-style scoring and `pmccabe` are useful for testing effort, but GNU Complexity tries to better rank functions that are difficult for humans to understand by considering length, nesting, switch bodies, and complicated boolean expressions.

### Adoptionsgeschichte

GNU Complexity has a narrow adoption footprint compared with larger GNU developer tools. Its significance is in the code-review and maintenance niche: it gives C maintainers a command-line metric that can point to suspicious functions in unfamiliar code, estimate testing or comprehension effort, and produce sorted score tables and histograms.

### Wie es verwendet wird

Practitioners run `complexity` over C source files to report procedure scores, line counts, source locations, and optional histograms. The manual's example runs the tool against its own source with a low threshold, illustrating use as a quick audit tool for ranking functions before refactoring or review.

### Warum Paket-Nerds sich dafür interessieren

For package nerds, GNU Complexity is interesting because it embodies a Unix-tool approach to maintainability: one command, text output, tunable thresholds, and a documented scoring model. It is useful in distributions as a lightweight companion to older tools such as `pmccabe` rather than as a large static-analysis framework.

### Zeitleiste

- 2011: GNU Complexity web page and manual documented version 0.4.
- 2011: Manual rationale compared GNU Complexity with `pmccabe` and explained its scoring model.

### Related projects

- `pmccabe` is the comparison point used throughout the GNU Complexity manual.
- `unifdef` is discussed in the parsing model as a way to handle preprocessor-conditional source.

### Quellen

- <https://www.gnu.org/software/complexity/>
- <https://www.gnu.org/software/complexity/manual/complexity.html>


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Details aus der Quelldatenbank

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

## Andere Paketmanager-Einträge

- Debian apt - complexity - 1.13-1+b1: installed executable or alias match | Debian stable package indexes: complexity from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for analyzing the complexity of C program functions | https://gnu.org/software/complexity
- Debian apt - complexity-doc - 1.13-1: installed executable or alias match | Debian stable package indexes: complexity-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for analyzing the complexity of C program (documentation) | https://gnu.org/software/complexity
- Nix - complexity: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/co/complexity/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - complexity - 1.13-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: complexity from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool for analyzing the complexity of C program functions | https://gnu.org/software/complexity
- Ubuntu apt - complexity-doc - 1.13-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: complexity-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool for analyzing the complexity of C program (documentation) | https://gnu.org/software/complexity
- zypper - complexity - 1.13-1.9: installed executable or alias match | openSUSE Tumbleweed package metadata: complexity from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C source code complexity computation utility | https://www.gnu.org/software/complexity/


## Verwandte Links

- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/de/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/de/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/de/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [autogen](https://pkg.so/de/brew/autogen/) - Runtime dependency declared by Homebrew.
- [autoconf](https://pkg.so/de/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/de/brew/automake/) - Build dependency declared by Homebrew.
- [pmccabe](https://pkg.so/de/brew/pmccabe/) - Shares pkgdb curated category or tags: c, cli, code-metrics, developer-tools, static-analysis.
- [cppcheck](https://pkg.so/de/brew/cppcheck/) - Shares pkgdb curated category or tags: c, cli, developer-tools, static-analysis.
- [include-what-you-use](https://pkg.so/de/brew/include-what-you-use/) - Shares pkgdb curated category or tags: c, cli, developer-tools, static-analysis.
- [lizard-analyzer](https://pkg.so/de/brew/lizard-analyzer/) - Shares pkgdb curated category or tags: cli, code-metrics, developer-tools, static-analysis.
- [sparse](https://pkg.so/de/brew/sparse/) - Shares pkgdb curated category or tags: c, cli, developer-tools, static-analysis.
- [cbmc](https://pkg.so/de/brew/cbmc/) - Shares pkgdb curated category or tags: c, cli, developer-tools, static-analysis.
- [cflow](https://pkg.so/de/brew/cflow/) - Shares pkgdb curated category or tags: c, cli, developer-tools, static-analysis.
- [coccinelle](https://pkg.so/de/brew/coccinelle/) - Shares pkgdb curated category or tags: c, cli, developer-tools, static-analysis.
- [gnu-indent](https://pkg.so/de/brew/gnu-indent/) - Package names and metadata indicate a similar tool family. Shared terms: c, cli, code, developer, developer-tools.
- [gnu-barcode](https://pkg.so/de/brew/gnu-barcode/) - 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-complexity.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gnu-complexity.yml)


## Quellen

- 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
