How To Install libevent.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install libevent.x86_64
on Amazon Linux 2.
What is libevent.x86_64
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.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libevent.x86_64.
Install libevent.x86_64 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.x86_64
using yum
by running the following command:
sudo yum -y install libevent.x86_64
How To Uninstall libevent.x86_64 on Amazon Linux 2
To uninstall only the libevent.x86_64
package we can use the following command:
sudo yum remove libevent.x86_64
libevent.x86_64 Package Contents on Amazon Linux 2
/usr/lib64/libevent-2.0.so.5
/usr/lib64/libevent-2.0.so.5.1.9
/usr/lib64/libevent_core-2.0.so.5
/usr/lib64/libevent_core-2.0.so.5.1.9
/usr/lib64/libevent_extra-2.0.so.5
/usr/lib64/libevent_extra-2.0.so.5.1.9
/usr/lib64/libevent_openssl-2.0.so.5
/usr/lib64/libevent_openssl-2.0.so.5.1.9
/usr/lib64/libevent_pthreads-2.0.so.5
/usr/lib64/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.x86_64
on Amazon Linux 2 using yum.