How To Install libevent.i686 on Amazon Linux 2

In this tutorial we learn how to install libevent.i686 in Amazon Linux 2. libevent.i686 is Abstract asynchronous event notification library

Introduction

In this tutorial we learn how to install libevent.i686 on Amazon Linux 2.

What is libevent.i686

The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. libevent is meant to replace the asynchronous event loop found in event driven network servers. An application just needs to call event_dispatch() and can then add or remove events dynamically without having to change the event loop.

We can use yum to install libevent.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libevent.i686.

Install libevent.i686 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libevent.i686 using yum by running the following command:

sudo yum -y install libevent.i686

How To Uninstall libevent.i686 on Amazon Linux 2

To uninstall only the libevent.i686 package we can use the following command:

sudo yum remove libevent.i686

libevent.i686 Package Contents on Amazon Linux 2

/usr/lib/libevent-2.0.so.5
/usr/lib/libevent-2.0.so.5.1.9
/usr/lib/libevent_core-2.0.so.5
/usr/lib/libevent_core-2.0.so.5.1.9
/usr/lib/libevent_extra-2.0.so.5
/usr/lib/libevent_extra-2.0.so.5.1.9
/usr/lib/libevent_openssl-2.0.so.5
/usr/lib/libevent_openssl-2.0.so.5.1.9
/usr/lib/libevent_pthreads-2.0.so.5
/usr/lib/libevent_pthreads-2.0.so.5.1.9
/usr/share/doc/libevent-2.0.21
/usr/share/doc/libevent-2.0.21/ChangeLog
/usr/share/doc/libevent-2.0.21/LICENSE
/usr/share/doc/libevent-2.0.21/README

References

Summary

In this tutorial we learn how to install libevent.i686 on Amazon Linux 2 using yum.