# Install include-what-you-use

Tool to analyze #includes in C and C++ source files. Version 0.26 via Homebrew; verified 2026-03-22.

## Install

```sh
sudo av install brew:include-what-you-use
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install include-what-you-use
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install include-what-you-use
```

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

### Linux

- apk (92%):

```sh
sudo apk add include-what-you-use
```

  Evidence: Alpine Linux edge package indexes: include-what-you-use from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install iwyu
```

  Evidence: Fedora Rawhide package metadata: iwyu from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#include-what-you-use
```

  Evidence: nixpkgs package indexes: include-what-you-use from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- zypper (92%):

```sh
sudo zypper install include-what-you-use
```

  Evidence: openSUSE Tumbleweed package metadata: include-what-you-use from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

## Package Facts

- **Package key:** brew:include-what-you-use
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/include-what-you-use>
- **Version:** 0.26
- **Source summary:** Tool to analyze #includes in C and C++ source files
- **Homepage:** <https://include-what-you-use.org/>
- **Repository:** <https://github.com/include-what-you-use/include-what-you-use>
- **Upstream docs:** <https://github.com/include-what-you-use/include-what-you-use#readme>
- **License:** NCSA
- **Source archive:** <https://include-what-you-use.org/downloads/include-what-you-use-0.26.src.tar.gz>
- **Last updated:** 2026-03-22T15:21:50Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- fix_includes.py (cli)
- include-what-you-use (cli)
- iwyu_tool.py (cli)
- fix_includes.py (alias)
- include-what-you-use (alias)
- iwyu_tool.py (alias)

## Dependencies

- llvm

## Build Dependencies

- cmake

## macOS Provided Libraries

- ncurses

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 0.26
- Package-manager updated: 2026-03-22
- Local data status: ok
- Upstream repository: https://include-what-you-use.org/
- info: Release/tag comparison is only available for GitHub repositories.

## Sicherheitshinweise

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:** include-what-you-use
- **Aliases:** iwyu
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - include-what-you-use: normalized package name match | nixpkgs package indexes: include-what-you-use from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - include-what-you-use - 0.26-r0: normalized package name match | Alpine Linux edge package indexes: include-what-you-use from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A tool for use with clang to analyze #includes in C and C++ source files | https://include-what-you-use.org
- apk - include-what-you-use-dbg - 0.26-r0: normalized package name match | Alpine Linux edge package indexes: include-what-you-use-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A tool for use with clang to analyze #includes in C and C++ source files (debug symbols) | https://include-what-you-use.org
- apk - include-what-you-use-doc - 0.26-r0: normalized package name match | Alpine Linux edge package indexes: include-what-you-use-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A tool for use with clang to analyze #includes in C and C++ source files (documentation) | https://include-what-you-use.org
- dnf - iwyu - 0.26-3.fc45: normalized package name match | Fedora Rawhide package metadata: iwyu from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst | C/C++ source files #include analyzer based on clang | https://github.com/include-what-you-use/include-what-you-use
- zypper - include-what-you-use - 0.26-1.2: normalized package name match | openSUSE Tumbleweed package metadata: include-what-you-use from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst | A tool to analyze #includes in C and C++ source files | https://include-what-you-use.org/
- zypper - include-what-you-use-tools - 0.26-1.2: normalized package name match | openSUSE Tumbleweed package metadata: include-what-you-use-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst | Additional tools to use include-what-you-use effectively | https://include-what-you-use.org/
- MacPorts - include-what-you-use: normalized package name match | MacPorts ports tree: devel/include-what-you-use/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related Links

- [Terminal utility packages](https://www.automicvault.com/de/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/de/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/de/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/de/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [llvm](https://www.automicvault.com/de/pkg/brew/llvm/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/de/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [clang-include-graph](https://www.automicvault.com/de/pkg/brew/clang-include-graph/) - Shares av.db curated category or tags: clang, cli, code-analysis, cpp, developer-tools.
- [clazy](https://www.automicvault.com/de/pkg/brew/clazy/) - Shares av.db curated category or tags: clang, cli, cpp, developer-tools, static-analysis.
- [clangql](https://www.automicvault.com/de/pkg/brew/clangql/) - Shares av.db curated category or tags: clang, cli, cpp, developer-tools, static-analysis.
- [pmccabe](https://www.automicvault.com/de/pkg/brew/pmccabe/) - Shares av.db curated category or tags: c, cli, code-analysis, cpp, developer-tools.
- [conan](https://www.automicvault.com/de/pkg/brew/conan/) - Shares av.db curated category or tags: c, cli, cpp, developer-tools.
- [lizard-analyzer](https://www.automicvault.com/de/pkg/brew/lizard-analyzer/) - Shares av.db curated category or tags: cli, code-analysis, code-quality, developer-tools, static-analysis.
- [clang-uml](https://www.automicvault.com/de/pkg/brew/clang-uml/) - Shares av.db curated category or tags: clang, cli, code-analysis, cpp, developer-tools.
- [castxml](https://www.automicvault.com/de/pkg/brew/castxml/) - Shares av.db curated category or tags: c, clang, cli, code-analysis, developer-tools.

## 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
