How To Install enet on CentOS 7

In this tutorial we learn how to install enet on CentOS 7. enet is Thin, simple and robust network layer on top of UDP

Introduction

In this tutorial we learn how to install enet on CentOS 7.

What is enet

ENet is a relatively thin, simple and robust network communication layer on top of UDP (User Datagram Protocol). The primary feature it provides is optional reliable, in-order delivery of packets. ENet is NOT intended to be a general purpose high level networking library that handles authentication, lobbying, server discovery, compression, encryption and other high level, often application level or dependent tasks.

We can use yum or dnf to install enet on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install enet.

Install enet on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install enet using yum by running the following command:

sudo yum -y install enet

Install enet on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install enet using dnf by running the following command:

sudo dnf -y install enet

How To Uninstall enet on CentOS 7

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

sudo dnf remove enet

References

Summary

In this tutorial we learn how to install enet on CentOS 7 using yum and dnf.