macOS
brew install sparselocal Homebrew formula metadata
安装
brew install sparselocal Homebrew formula metadata
sudo apk add sparseAlpine Linux edge package indexes · sparse · 来源: dl-cdn.alpinelinux.org
sudo apt install sparseDebian stable package indexes · sparse · 来源: deb.debian.org
sudo dnf install sparseFedora Rawhide package metadata · sparse · 来源: dl.fedoraproject.org
nix profile install nixpkgs#sparsenixpkgs package indexes · pkgs/by-name/sp/sparse/package.nix · 来源: api.github.com
sudo pacman -S sparseArch Linux sync databases · sparse · 来源: geo.mirror.pkgbuild.com
sudo zypper install sparseopenSUSE Tumbleweed package metadata · sparse · 来源: download.opensuse.org
概览
Static C code analysis tool
历史
Sparse is a semantic parser and static-analysis tool for C, historically tied to Linux kernel development. It parses much of ANSI C plus many GCC extensions and uses annotations to catch mistakes such as incorrect address-space pointer use.
The official documentation says Linus Torvalds started writing Sparse in 2003, initially targeting issues such as mixing user-space and kernel-space pointers. It also records maintainer handoffs to Josh Triplett in 2006, Christopher Li in 2009, and Luc Van Oostenryck in late 2018.
Sparse's adoption is rooted in kernel and low-level C workflows rather than general application development. Its official documentation points contributors to the linux-sparse mailing list, kernel.org Git repository, release tarballs, and kernel bug tracker, while the supplied package data shows distribution through many Unix package managers.
Users build Sparse from the kernel.org Git repository with `make` and `make install`, or install it from a system package manager. The `sparse` analyzer and `cgcc` wrapper are used to check C code with Sparse's type and annotation system.
Sparse matters to package nerds because it is old-school kernel infrastructure that still behaves like a classic Unix developer tool: source releases, mailing-list development, a kernel.org Git repository, manpage-like docs, and wide distro packaging. It also demonstrates how static-analysis tools become part of build and packaging QA culture.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cgcc | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
sparse | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:sparse |
|---|---|
| 版本 | 0.6.4 |
| 软件包管理器 | Homebrew |
| 主页 | https://sparse.wiki.kernel.org/ |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
sparse 0.6.4-5
semantic parser of source files
https://sparse.wiki.kernel.org/
sudo apt install sparsesparse-test-inspect 0.6.4-5
semantic parser of source files
https://sparse.wiki.kernel.org/
sudo apt install sparse-test-inspectsparse
nix profile install nixpkgs#sparsesparse 0.6.4-4ubuntu3
semantic parser of source files
https://sparse.wiki.kernel.org/
sudo apt install sparsesparse-test-inspect 0.6.4-4ubuntu3
semantic parser of source files
https://sparse.wiki.kernel.org/
sudo apt install sparse-test-inspectsparse 0.6.4-r2
A semantic parser of source files
http://sparse.wiki.kernel.org/
sudo apk add sparsesparse-doc 0.6.4-r2
A semantic parser of source files (documentation)
http://sparse.wiki.kernel.org/
sudo apk add sparse-docsparse 0.6.4-4.gce1a6720f69e.fc45.8
A semantic parser of source files
https://sparse.wiki.kernel.org
sudo dnf install sparsesparse 0.6.5+rc1-2
Semantic parser for C
https://sparse.docs.kernel.org/en/latest/
sudo pacman -S sparsesparse 0.6.5~rc1+20251218-1.2
A semantic parser of source files
https://sparse.docs.kernel.org/
sudo zypper install sparsesparse-inspect 0.6.5~rc1+20251218-1.2
Inspect binary from sparse
https://sparse.docs.kernel.org/
sudo zypper install sparse-inspect来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.