# Install pmd with Homebrew, chocolatey, MacPorts, Nix

Source code analyzer for Java, JavaScript, and more. Version 7.26.0 via Homebrew; verified 2026-06-29.

## Install

```sh
sudo av install brew:pmd
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install pmd
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pmd
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#pmd
```

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

### Windows

- Chocolatey (92%):

```sh
choco install pmd
```

  Evidence: Chocolatey community package catalog: pmd from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','pingplotter'

## Package facts

- **Package key:** brew:pmd
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/pmd>
- **Version:** 7.26.0
- **Source summary:** Source code analyzer for Java, JavaScript, and more
- **Homepage:** <https://pmd.github.io>
- **Repository:** <https://github.com/pmd/pmd>
- **Upstream docs:** <https://docs.pmd-code.org/latest>
- **License:** BSD-4-Clause
- **Source archive:** <https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.26.0/pmd-dist-7.26.0-bin.zip>
- **Last updated:** 2026-06-29T11:30:12Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- pmd (cli)
- pmd (alias)

## Dependencies

- openjdk

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 7.26.0
- Package-manager updated: 2026-06-29
- Local data: ok
- Upstream repository: https://github.com/pmd/pmd
- info: No cached GitHub release or tag data was available.

## 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:** pmd
- **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

- Nix - pmd: normalized package name match | nixpkgs package indexes: pkgs/by-name/pm/pmd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - pmd: normalized package name match | MacPorts ports tree: java/pmd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - pmd: normalized package name match | Chocolatey community package catalog: pmd from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','pingplotter'


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [eslint](https://www.automicvault.com/pkg/brew/eslint/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, javascript, linter.
- [spotbugs](https://www.automicvault.com/pkg/brew/spotbugs/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, java, linter.
- [checkstyle](https://www.automicvault.com/pkg/brew/checkstyle/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, java, static-analysis.
- [go-critic](https://www.automicvault.com/pkg/brew/go-critic/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linter, static-analysis.
- [luacheck](https://www.automicvault.com/pkg/brew/luacheck/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linter, static-analysis.
- [pylint](https://www.automicvault.com/pkg/brew/pylint/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linter, static-analysis.
- [revive](https://www.automicvault.com/pkg/brew/revive/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linter, static-analysis.
- [selene](https://www.automicvault.com/pkg/brew/selene/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linter, static-analysis.

## Combined YAML source

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


## Sources

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