How To Install libexplain-doc on Ubuntu 18.04

In this tutorial we learn how to install libexplain-doc on Ubuntu 18.04. libexplain-doc is library of system-call-specific strerror repl - documentation

Introduction

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

What is libexplain-doc

libexplain-doc is:

This package provides a library which may be used to explain Unix and Linux system call errors. The library is not quite a drop-in replacement for strerror, but it comes close, with each system call having a dedicated libexplain function.

There are three methods to install libexplain-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 libexplain-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 libexplain-doc using apt-get by running the following command:

sudo apt-get -y install libexplain-doc

Install libexplain-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libexplain-doc

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

sudo aptitude -y install libexplain-doc

How To Uninstall libexplain-doc on Ubuntu 18.04

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

sudo apt-get remove libexplain-doc

Uninstall libexplain-doc And Its Dependencies

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

sudo apt-get -y autoremove libexplain-doc

Remove libexplain-doc Configurations and Data

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

sudo apt-get -y purge libexplain-doc

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

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

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

References

Summary

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