spatch command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
spatch: command not found
or when using sudo you get the following error message
sudo: spatch: command not found
Solutions to spatch: command not found
How To Fix spatch: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu spatch is provided by coccinelle package.
coccinelle is:
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.
To fix this problem, we can install more using the command below.
sudo apt-get -y install coccinelle
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install coccinelle.
sudo apt -y install coccinelle
Or if you have aptitude installed you can use the following command.
sudo aptitude install coccinelle
Summary
In this tutorial we learn how to fix spatch command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.