macOS
brew install deheaderlocal Homebrew formula metadata
安装
brew install deheaderlocal Homebrew formula metadata
sudo apt install deheaderDebian stable package indexes · deheader · 来源: deb.debian.org
nix profile install nixpkgs#deheadernixpkgs package indexes · pkgs/by-name/de/deheader/package.nix · 来源: api.github.com
sudo zypper install deheaderopenSUSE Tumbleweed package metadata · deheader · 来源: download.opensuse.org
概览
Analyze C/C++ files for unnecessary headers
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
deheader | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
http://www.catb.org/~esr/deheader/
安装元数据
| 软件包键 | brew:deheader |
|---|---|
| 版本 | 1.12 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/deheader |
| 主页 | http://www.catb.org/~esr/deheader/ |
| 仓库 | https://gitlab.com/esr/deheader |
| 上游文档 | http://www.catb.org/~esr/deheader |
| 许可证 | BSD-2-Clause |
| 源码归档 | https://gitlab.com/esr/deheader/-/archive/1.12/deheader-1.12.tar.bz2 |
| 构建依赖 | asciidoctor |
| macOS 提供的库 | python |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 deheader来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.