iio_reg command not found

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

Introduction

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

iio_reg: command not found

or when using sudo you get the following error message

sudo: iio_reg: command not found

Solutions to iio_reg: command not found

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

In Ubuntu iio_reg is provided by libiio-utils package.

libiio-utils is:

Libiio is a library that has been conceived to ease the development of applications interfacing Industrial Input/Output (IIO) devices through the IIO subsystem of the Linux kernel.

This package contains several basic utilities for testing libiio.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libiio-utils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libiio-utils.

sudo apt -y install libiio-utils

Or if you have aptitude installed you can use the following command.

sudo aptitude install libiio-utils

Summary

In this tutorial we learn how to fix iio_reg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.