How To Install python-enet on Ubuntu 18.04

In this tutorial we learn how to install python-enet on Ubuntu 18.04. python-enet is Python2 wrapper for the ENet library

Introduction

In this tutorial we learn how to install python-enet on Ubuntu 18.04.

What is python-enet

python-enet is:

python-enet provides a thin wrapper around the enet networking library. ENet is a thin layer to provide reliable communication over UDP.

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

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

sudo apt-get update

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

sudo apt-get -y install python-enet

Install python-enet Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-enet

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

sudo aptitude -y install python-enet

How To Uninstall python-enet on Ubuntu 18.04

To uninstall only the python-enet package we can use the following command:

sudo apt-get remove python-enet

Uninstall python-enet And Its Dependencies

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

sudo apt-get -y autoremove python-enet

Remove python-enet Configurations and Data

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

sudo apt-get -y purge python-enet

Remove python-enet configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-enet

References

Summary

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