# Install pmccabe with Homebrew, apk, apt, Nix, zypper

Calculate McCabe-style cyclomatic complexity for C/C++ code. Version 2.9 via Homebrew; verified 2026-06-13. Also installable with debian: sudo apt install pmccabe.

## Install

```sh
sudo av install brew:pmccabe
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install pmccabe
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add pmccabe
```

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

- Debian apt (92%):

```sh
sudo apt install pmccabe
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#pmccabe
```

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

- zypper (92%):

```sh
sudo zypper install pmccabe
```

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

## Package facts

- **Package key:** brew:pmccabe
- **Package manager:** Homebrew
- **Version:** 2.9
- **Source summary:** Calculate McCabe-style cyclomatic complexity for C/C++ code
- **Homepage:** <https://gitlab.com/pmccabe/pmccabe>
- **Last updated:** 2026-06-13T15:43:57Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- codechanges (alias)
- decomment (alias)
- pmccabe (alias)
- vifn (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.9

## Security Notes

narrow executable package without higher-risk signals.

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

## Other Package-Manager Records

- Debian apt - pmccabe - 2.8-3: normalized package name match | Debian stable package indexes: pmccabe from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | McCabe-style function complexity and line counting for C and C++ | https://gitlab.com/pmccabe/pmccabe
- Nix - pmccabe: normalized package name match | nixpkgs package indexes: pkgs/by-name/pm/pmccabe/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - pmccabe - 2.8-3: normalized package name match | Ubuntu 24.04 LTS package indexes: pmccabe from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | McCabe-style function complexity and line counting for C and C++ | https://gitlab.com/pmccabe/pmccabe
- apk - pmccabe - 2.8-r1: normalized package name match | Alpine Linux edge package indexes: pmccabe from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | McCabe-style complexity and line counting for C and C++ | https://gitlab.com/pmccabe/pmccabe
- apk - pmccabe-doc - 2.8-r1: normalized package name match | Alpine Linux edge package indexes: pmccabe-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | McCabe-style complexity and line counting for C and C++ (documentation) | https://gitlab.com/pmccabe/pmccabe
- zypper - pmccabe - 2.8-1.17: normalized package name match | openSUSE Tumbleweed package metadata: pmccabe from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | McCabe-style complexity and line counting for C and C++ | https://gitlab.com/jas/pmccabe


## Combined YAML source

View the package source record on GitHub. [combined/pmccabe.yml](https://github.com/mxcl/pkgdb/blob/main/combined/pmccabe.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
