macOS
brew install coccinellelocal Homebrew formula metadata
sudo port install coccinelleMacPorts ports tree · devel/coccinelle/Portfile · source: api.github.com
brew
Program matching and transformation engine for C code. Version 1.3.1 via Homebrew; verified from local package data.
install
brew install coccinellelocal Homebrew formula metadata
sudo port install coccinelleMacPorts ports tree · devel/coccinelle/Portfile · source: api.github.com
sudo apk add coccinelleAlpine Linux edge package indexes · coccinelle · source: dl-cdn.alpinelinux.org
sudo apt install coccinelleDebian stable package indexes · coccinelle · source: deb.debian.org
sudo dnf install coccinelleFedora Rawhide package metadata · coccinelle · source: dl.fedoraproject.org
nix profile install nixpkgs#coccinellenixpkgs package indexes · coccinelle · source: raw.githubusercontent.com
sudo zypper install coccinelleopenSUSE Tumbleweed package metadata · coccinelle · source: download.opensuse.org
overview
Program matching and transformation engine for C code
history
Coccinelle is a program matching and transformation engine for C code, centered on SmPL, the Semantic Patch Language. In package-manager culture it is best known as the `spatch` tool used for large C tree transformations, especially in Linux kernel development.
The official INRIA site describes Coccinelle as a tool originally targeted at collateral evolutions in Linux: source-code updates required when library APIs change. It broadened from that origin into finding and fixing bugs in systems code.
The project has long had a research and systems-programming identity. The official site links papers, workshops, Linux impact pages, and SmPL grammar documentation, while the current GitLab project is hosted under INRIA.
Coccinelle's strongest adoption signal is Linux itself. The upstream Linux documentation has a dedicated Coccinelle page, describes the `make coccicheck` target, and says the semantic patches in the kernel require Coccinelle 1.0.0-rc11 or newer.
The Linux documentation also lists distribution availability through Debian, Fedora, Ubuntu, OpenSUSE, Arch Linux, Gentoo, NetBSD, and FreeBSD, while the input adds Homebrew, MacPorts, Nix, apk, dnf, and zypper.
The main executable is `spatch`. Users write semantic patches in SmPL and run them over a file, directory, or source tree to report matches or propose transformations.
In the Linux kernel workflow, `make coccicheck MODE=report` reports matches and `MODE=patch` proposes fixes. The kernel script wires Coccinelle into the build tree through `scripts/coccicheck` and `scripts/coccinelle`.
Coccinelle supports `.cocciconfig` files in the user's home directory, the current directory, and the directory passed with `--dir`, letting users set preferred `spatch` options.
Coccinelle is one of the more historically interesting developer-tool packages because it turns program transformation research into a packaged Unix CLI used by real infrastructure projects.
For package maintainers, it is a cross-distribution systems-code tool with an OCaml heritage, a Linux-kernel integration point, and a command (`spatch`) whose usefulness depends on both the executable and a corpus of semantic patches.
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.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.cocciconfig./.cocciconfig<dir passed with --dir>/.cocciconfigexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
spatch | cli | global executable | |
spgen | 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://coccinelle.gitlabpages.inria.fr/website/
install metadata
| Package key | brew:coccinelle |
|---|---|
| Version | 1.3.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/coccinelle |
| Homepage | https://coccinelle.gitlabpages.inria.fr/website/ |
| Repository | https://gitlab.inria.fr/coccinelle/coccinelle |
| Upstream docs | https://coccinelle.gitlabpages.inria.fr/website |
| License | GPL-2.0-only |
| Source archive | https://coccinelle.gitlabpages.inria.fr/website/distrib/coccinelle-1.3.1.tar.gz |
| Build dependencies | autoconf, automake, menhir, ocaml, ocaml-findlib |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | coccinelle |
| 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.
coccinelle 1.3.0.deb-1+b2
semantic patching tool for C
sudo apt install coccinellecoccinelle
nix profile install nixpkgs#coccinellecoccinelle 1.1.1.deb-5build1
semantic patching tool for C
sudo apt install coccinellecoccinelle-doc 1.1.1.deb-5build1
documentation for coccinelle
sudo apt install coccinelle-doccoccinelle 1.1.1-r2
provides the spatch matching and transformation engine implementing semantic patch language
https://coccinelle.gitlabpages.inria.fr/website/
sudo apk add coccinellecoccinelle-bash-completion 1.1.1-r2
Bash completions for coccinelle
https://coccinelle.gitlabpages.inria.fr/website/
sudo apk add coccinelle-bash-completioncoccinelle-doc 1.1.1-r2
provides the spatch matching and transformation engine implementing semantic patch language (documentation)
https://coccinelle.gitlabpages.inria.fr/website/
sudo apk add coccinelle-doccoccinelle 1.3.1-7.fc45
Semantic patching for Linux (spatch)
sudo dnf install coccinellecoccinelle-bash-completion 1.3.1-7.fc45
Bash tab-completion for coccinelle
sudo dnf install coccinelle-bash-completioncoccinelle-doc 1.3.1-7.fc45
Documentation for coccinelle
sudo dnf install coccinelle-doccoccinelle-examples 1.3.1-7.fc45
Examples for coccinelle
sudo dnf install coccinelle-examplescoccinelle 1.3.1-2.3
Semantic patch utility
sudo zypper install coccinellecoccinelle
sudo port install coccinellesource 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.