macOS
brew install sparselocal Homebrew formula metadata
brew
Static C code analysis tool. Version 0.6.4 via Homebrew; verified from local package data.
install
brew install sparselocal Homebrew formula metadata
sudo apk add sparseAlpine Linux edge package indexes · sparse · source: dl-cdn.alpinelinux.org
sudo apt install sparseDebian stable package indexes · sparse · source: deb.debian.org
sudo dnf install sparseFedora Rawhide package metadata · sparse · source: dl.fedoraproject.org
nix profile install nixpkgs#sparsenixpkgs package indexes · pkgs/by-name/sp/sparse/package.nix · source: api.github.com
sudo pacman -S sparseArch Linux sync databases · sparse · source: geo.mirror.pkgbuild.com
sudo zypper install sparseopenSUSE Tumbleweed package metadata · sparse · source: download.opensuse.org
overview
Static C code analysis tool
history
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.
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 |
|---|---|---|---|
cgcc | cli | global executable | |
sparse | 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.
https://sparse.wiki.kernel.org/
install metadata
| Package key | brew:sparse |
|---|---|
| Version | 0.6.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/sparse |
| Homepage | https://sparse.wiki.kernel.org/ |
| Repository | https://git.kernel.org/pub/scm/devel/sparse/sparse.git |
| Upstream docs | https://sparse.docs.kernel.org/en/latest |
| License | MIT |
| Source archive | https://mirrors.edge.kernel.org/pub/software/devel/sparse/dist/sparse-0.6.4.tar.xz |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | sparse |
| 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.
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.fc44.7
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.4+20240203-1.7
A semantic parser of source files
https://sparse.docs.kernel.org/
sudo zypper install sparsesparse-inspect 0.6.4+20240203-1.7
Inspect binary from sparse
https://sparse.docs.kernel.org/
sudo zypper install sparse-inspectsource 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.