How To Install libeio on CentOS 7

In this tutorial we learn how to install libeio on CentOS 7. libeio is Event-based fully asynchronous I/O library

Introduction

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

What is libeio

Libeio is a full-featured asynchronous I/O library for C, modeled in similar style and spirit as libev. Features include asynchronous read, write, open, close, stat, unlink, fdatasync, mknod, readdir etc. (basically the full POSIX API). sendfile (native on Solaris, Linux, HP-UX, FreeBSD, emulated everywhere else), readahead (emulated where not available). It is fully event-library agnostic and can easily be integrated into any event-library (or used standalone, even in polling mode). It is very portable and relies only on POSIX threads.

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

Install libeio on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libeio

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

sudo dnf -y install libeio

How To Uninstall libeio on CentOS 7

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

sudo dnf remove libeio

References

Summary

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