Install Spatch On A Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS

Install Spatch On A Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS

spatch

semantic patching tool for C

Maintainer: Debian OCaml Maintainers



Section: devel

Install spatch

  • Debian apt-get install coccinelle Click to copy
  • Ubuntu apt-get install coccinelle Click to copy
  • Kali Linux apt-get install coccinelle Click to copy
  • Fedora dnf install coccinelle Click to copy
  • Raspbian apt-get install coccinelle Click to copy
  • macOS brew install coccinelle Click to copy

coccinelle

semantic patching tool for C

Coccinelle is a program matching and transformation tool for C. The programmer describes the code to match and the transformation to perform as a semantic patch, which looks like a standard patch, but can transform multiple files at any number of code sites.

Installation of latest spatch command is available for Debian, Ubuntu, Kali, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.