How To Install libtevent0 on Ubuntu 18.04

In this tutorial we learn how to install libtevent0 on Ubuntu 18.04. libtevent0 is talloc-based event loop library - shared library

Introduction

In this tutorial we learn how to install libtevent0 on Ubuntu 18.04.

What is libtevent0

libtevent0 is:

tevent is a simple library that can handle the main event loop for an application. It supports three kinds of events: timed events, file descriptors becoming readable or writable and signals.

Talloc is used for memory management, both internally and for private data provided by users of the library.

This package provides the shared library file.

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

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

sudo apt-get update

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

sudo apt-get -y install libtevent0

Install libtevent0 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libtevent0 using apt by running the following command:

sudo apt -y install libtevent0

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

sudo aptitude -y install libtevent0

How To Uninstall libtevent0 on Ubuntu 18.04

To uninstall only the libtevent0 package we can use the following command:

sudo apt-get remove libtevent0

Uninstall libtevent0 And Its Dependencies

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

sudo apt-get -y autoremove libtevent0

Remove libtevent0 Configurations and Data

To remove libtevent0 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libtevent0

Remove libtevent0 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtevent0

References

Summary

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