gpiodetect command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gpiodetect: command not found
or when using sudo you get the following error message
sudo: gpiodetect: command not found
Solutions to gpiodetect: command not found
How To Fix gpiodetect: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gpiodetect is provided by gpiod package.
gpiod is:
libgpiod encapsulates the ioctl calls and data structures behind a straightforward API. This new character device interface guarantees all allocated resources are freed after closing the device file descriptor and adds several new features that are not present in the obsolete sysfs interface (like event polling, setting/reading multiple values at once or open-source and open-drain GPIOs).
This package contains the gpiod binary tools.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gpiod
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gpiod.
sudo apt -y install gpiod
Or if you have aptitude installed you can use the following command.
sudo aptitude install gpiod
Summary
In this tutorial we learn how to fix gpiodetect command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.