gpiomon command not found

In this troubleshooting guide we learn how to fix gpiomon command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

gpiomon: command not found

or when using sudo you get the following error message

sudo: gpiomon: command not found

Solutions to gpiomon: command not found

How To Fix gpiomon: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gpiomon 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 gpiomon command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.