macOS
brew install deheaderlocal Homebrew formula metadata
brew
Analyze C/C++ files for unnecessary headers. Version 1.12 via Homebrew; verified from local package data.
install
brew install deheaderlocal Homebrew formula metadata
sudo apt install deheaderDebian stable package indexes · deheader · source: deb.debian.org
nix profile install nixpkgs#deheadernixpkgs package indexes · pkgs/by-name/de/deheader/package.nix · source: api.github.com
sudo zypper install deheaderopenSUSE Tumbleweed package metadata · deheader · source: download.opensuse.org
overview
Analyze C/C++ files for unnecessary headers
history
deheader is a C and C++ source analysis tool that finds include directives which can be removed while the file still compiles.
The official project page describes deheader as a tool for removing unneeded includes, improving compilation time on large C++ projects, and exposing hidden dependencies and cohesion problems. The README says it is commonly packaged as `deheader`.
The NEWS file gives a long maintenance record beginning with 0.1 on 2010-12-01. Later releases added summary output, portability checks, duplicate include detection, Python 2/3 compatibility, Makefile-friendly exit status, GCC compatibility updates, and continued documentation and hardening fixes through 1.12 in 2026.
deheader is packaged by Homebrew and appears upstream as a named package on the official project page. Its low-level C/C++ focus makes it more of a maintainer and build-hygiene tool than an end-user application.
The package is used during source maintenance to test whether headers are actually required. Because it verifies removals by compilation, it belongs in the same toolbox as static-analysis and build-cleanup utilities rather than pure text linters.
deheader matters to package nerds because header bloat affects compile time, portability, and dependency clarity. It is especially relevant when distributions and maintainers need source trees to build cleanly across compilers, standard libraries, and Unix variants.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
deheader | cli | global executable |
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.
http://www.catb.org/~esr/deheader/
install metadata
| Package key | brew:deheader |
|---|---|
| Version | 1.12 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/deheader |
| Homepage | http://www.catb.org/~esr/deheader/ |
| Repository | https://gitlab.com/esr/deheader |
| Upstream docs | http://www.catb.org/~esr/deheader |
| License | BSD-2-Clause |
| Source archive | https://gitlab.com/esr/deheader/-/archive/1.12/deheader-1.12.tar.bz2 |
| Build dependencies | asciidoctor |
| Uses from macOS | python |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | deheader |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
deheader 1.11-1
Find and remove unnecessary includes in C or C++ source files
http://www.catb.org/~esr/deheader/
sudo apt install deheaderdeheader
nix profile install nixpkgs#deheaderdeheader 1.10-1
Find and remove unnecessary includes in C or C++ source files
http://www.catb.org/~esr/deheader/
sudo apt install deheaderdeheader 1.11-1.2
Find and optionally remove unneeded includes in C or C++ sourcefiles
http://www.catb.org/~esr/deheader/
sudo zypper install deheadersource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.