How To Install libevdev-doc on Ubuntu 18.04

In this tutorial we learn how to install libevdev-doc on Ubuntu 18.04. libevdev-doc is wrapper library for evdev devices - development docs

Introduction

In this tutorial we learn how to install libevdev-doc on Ubuntu 18.04.

What is libevdev-doc

libevdev-doc is:

libevdev is a wrapper library for evdev devices. It provides functions covering the common tasks when dealing with evdev devices, thus avoiding erroneous ioctls and other errors.

This package contains the documentation for developers wishing to build software using libevdev.

There are three methods to install libevdev-doc 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 libevdev-doc Using apt-get

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

sudo apt-get update

After updating apt database, We can install libevdev-doc using apt-get by running the following command:

sudo apt-get -y install libevdev-doc

Install libevdev-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libevdev-doc using apt by running the following command:

sudo apt -y install libevdev-doc

Install libevdev-doc 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 libevdev-doc using aptitude by running the following command:

sudo aptitude -y install libevdev-doc

How To Uninstall libevdev-doc on Ubuntu 18.04

To uninstall only the libevdev-doc package we can use the following command:

sudo apt-get remove libevdev-doc

Uninstall libevdev-doc And Its Dependencies

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

sudo apt-get -y autoremove libevdev-doc

Remove libevdev-doc Configurations and Data

To remove libevdev-doc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libevdev-doc

Remove libevdev-doc configuration, data, and all of its dependencies

We can use the following command to remove libevdev-doc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libevdev-doc

References

Summary

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