Automic VaultAutomic Vault

brew

Install coccinelle with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Program matching and transformation engine for C code. Version 1.3.1 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install coccinelle

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install coccinelle

MacPorts ports tree · devel/coccinelle/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add coccinelle

Alpine Linux edge package indexes · coccinelle · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install coccinelle

Debian stable package indexes · coccinelle · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install coccinelle

Fedora Rawhide package metadata · coccinelle · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#coccinelle

nixpkgs package indexes · coccinelle · source: raw.githubusercontent.com

openSUSE zypperverified · 92%
sudo zypper install coccinelle

openSUSE Tumbleweed package metadata · coccinelle · source: download.opensuse.org

overview

Package summary

Program matching and transformation engine for C code

Commands and aliases

  • spatch
  • spgen

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2005: Official site HTML carries an early creation marker.
  • 2009: Official site lists the first Coccinelle Users Day.
  • 2010: Linux kernel Coccinelle documentation and coccicheck script carry 2010 copyright notices.
  • 2010: Official site links Coccinelle at the 2010 kernel summit.
  • 2020: Current INRIA GitLab project created.
  • 2021: SmPL grammar documentation lists version 1.1.0 and date June 21, 2021.

Related projects

  • Linux kernel `coccicheck` is the most visible related integration.
  • SmPL is the project-specific semantic patch language.
  • The Rust-for-Linux Coccinelle-for-Rust work is linked from the official site as a related direction.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 5 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.cocciconfig./.cocciconfig<dir passed with --dir>/.cocciconfig

executables

Installed executables

CommandKindExposureNote
spatchcliglobal executable
spgencliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version1.3.1
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://coccinelle.gitlabpages.inria.fr/website/

install metadata

Package metadata

Package keybrew:coccinelle
Version1.3.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/coccinelle
Homepagehttps://coccinelle.gitlabpages.inria.fr/website/
Repositoryhttps://gitlab.inria.fr/coccinelle/coccinelle
Upstream docshttps://coccinelle.gitlabpages.inria.fr/website
LicenseGPL-2.0-only
Source archivehttps://coccinelle.gitlabpages.inria.fr/website/distrib/coccinelle-1.3.1.tar.gz
Build dependenciesautoconf, automake, menhir, ocaml, ocaml-findlib
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecoccinelle
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

coccinelle 1.3.0.deb-1+b2

semantic patching tool for C

http://coccinelle.lip6.fr

sudo apt install coccinelle
  • Section: devel
  • Architecture: amd64
  • Source Package: coccinelle
  • 7 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Coccinelle
Debian stable package indexes · deb.debian.org · Debian stable package indexes: coccinelle from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

coccinelle

nix profile install nixpkgs#coccinelle
  • normalized package name match
  • Matched by: Coccinelle
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: coccinelle from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

coccinelle 1.1.1.deb-5build1

semantic patching tool for C

http://coccinelle.lip6.fr

sudo apt install coccinelle
  • Section: universe/devel
  • Architecture: amd64
  • 6 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Coccinelle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: coccinelle from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

coccinelle-doc 1.1.1.deb-5build1

documentation for coccinelle

http://coccinelle.lip6.fr

sudo apt install coccinelle-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: coccinelle
  • normalized package name match
  • Matched by: Coccinelle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: coccinelle-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

coccinelle 1.1.1-r2

provides the spatch matching and transformation engine implementing semantic patch language

https://coccinelle.gitlabpages.inria.fr/website/

sudo apk add coccinelle
  • License: GPL-2.0-only
  • Architecture: x86_64
  • Source Package: coccinelle
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Coccinelle
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: coccinelle from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

coccinelle-bash-completion 1.1.1-r2

Bash completions for coccinelle

https://coccinelle.gitlabpages.inria.fr/website/

sudo apk add coccinelle-bash-completion
  • License: GPL-2.0-only
  • Architecture: x86_64
  • Source Package: coccinelle
  • normalized package name match
  • Matched by: Coccinelle
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: coccinelle-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

coccinelle-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-doc
  • License: GPL-2.0-only
  • Architecture: x86_64
  • Source Package: coccinelle
  • normalized package name match
  • Matched by: Coccinelle
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: coccinelle-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

coccinelle 1.3.1-7.fc45

Semantic patching for Linux (spatch)

https://coccinelle.lip6.fr/

sudo dnf install coccinelle
  • License: GPL-2.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: coccinelle
  • 12 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Coccinelle
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: coccinelle from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

coccinelle-bash-completion 1.3.1-7.fc45

Bash tab-completion for coccinelle

https://coccinelle.lip6.fr/

sudo dnf install coccinelle-bash-completion
  • License: GPL-2.0-only
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: coccinelle
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Coccinelle
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: coccinelle-bash-completion from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

coccinelle-doc 1.3.1-7.fc45

Documentation for coccinelle

https://coccinelle.lip6.fr/

sudo dnf install coccinelle-doc
  • License: GFDL-1.3-no-invariants-only
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: coccinelle
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Coccinelle
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: coccinelle-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

coccinelle-examples 1.3.1-7.fc45

Examples for coccinelle

https://coccinelle.lip6.fr/

sudo dnf install coccinelle-examples
  • License: GPL-2.0-only
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: coccinelle
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Coccinelle
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: coccinelle-examples from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

coccinelle 1.3.1-2.3

Semantic patch utility

http://coccinelle.lip6.fr/

sudo zypper install coccinelle
  • License: GPL-2.0-only
  • Category: Productivity/Text/Utilities
  • Architecture: x86_64
  • Source Package: coccinelle
  • 10 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Coccinelle
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: coccinelle from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

coccinelle

sudo port install coccinelle
  • normalized package name match
  • Matched by: Coccinelle
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/coccinelle/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment