How To Install iio-sensor-proxy on Ubuntu 18.04

In this tutorial we learn how to install iio-sensor-proxy on Ubuntu 18.04. iio-sensor-proxy is IIO sensors to D-Bus proxy

Introduction

In this tutorial we learn how to install iio-sensor-proxy on Ubuntu 18.04.

What is iio-sensor-proxy

iio-sensor-proxy is:

Industrial I/O subsystem is intended to provide support for devices that in some sense are analog to digital or digital to analog convertors

Devices that fall into this category are:

  • ADCs
  • Accelerometers
  • Gyros
  • IMUs
  • Capacitance to Digital Converters (CDCs)
  • Pressure Sensors
  • Color, Light and Proximity Sensors
  • Temperature Sensors
  • Magnetometers
  • DACs
  • DDS (Direct Digital Synthesis)
  • PLLs (Phase Locked Loops)
  • Variable/Programmable Gain Amplifiers (VGA, PGA)

Many ultrabooks ship with some of these devices. iio-sensor-proxy is intended to serve as a proxy, providing access to these devices through a D-Bus interface

There are three methods to install iio-sensor-proxy on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install iio-sensor-proxy Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install iio-sensor-proxy using apt-get by running the following command:

sudo apt-get -y install iio-sensor-proxy

Install iio-sensor-proxy Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install iio-sensor-proxy using apt by running the following command:

sudo apt -y install iio-sensor-proxy

Install iio-sensor-proxy Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install iio-sensor-proxy using aptitude by running the following command:

sudo aptitude -y install iio-sensor-proxy

How To Uninstall iio-sensor-proxy on Ubuntu 18.04

To uninstall only the iio-sensor-proxy package we can use the following command:

sudo apt-get remove iio-sensor-proxy

Uninstall iio-sensor-proxy And Its Dependencies

To uninstall iio-sensor-proxy and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove iio-sensor-proxy

Remove iio-sensor-proxy Configurations and Data

To remove iio-sensor-proxy configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge iio-sensor-proxy

Remove iio-sensor-proxy configuration, data, and all of its dependencies

We can use the following command to remove iio-sensor-proxy configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge iio-sensor-proxy

References

Summary

In this tutorial we learn how to install iio-sensor-proxy package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.