How To Install libevent on Rocky Linux 8
Introduction
In this tutorial we learn how to install libevent
on Rocky Linux 8.
What is libevent
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
or dnf
to install libevent
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libevent.
Install libevent on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libevent
using dnf
by running the following command:
sudo dnf -y install libevent
Install libevent on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libevent
using yum
by running the following command:
sudo yum -y install libevent
How To Uninstall libevent on Rocky Linux 8
To uninstall only the libevent
package we can use the following command:
sudo dnf remove libevent
libevent Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/ff478a05f7c7c185e6355497b2e97cbc79d668
/usr/lib/.build-id/55
/usr/lib/.build-id/55/7855b064a26f192c906e0e73a8cd3ddd9d0ec5
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/ffb354e8aec71d77e7b2ee9f0e3549c202bfbf
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/5c9d1e930ee9f9a8015c0e2896bd02491711ce
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/fd7c6304c71681f09c4a86a2c4e0d207f1a578
/usr/lib64/libevent-2.1.so.6
/usr/lib64/libevent-2.1.so.6.0.2
/usr/lib64/libevent_core-2.1.so.6
/usr/lib64/libevent_core-2.1.so.6.0.2
/usr/lib64/libevent_extra-2.1.so.6
/usr/lib64/libevent_extra-2.1.so.6.0.2
/usr/lib64/libevent_openssl-2.1.so.6
/usr/lib64/libevent_openssl-2.1.so.6.0.2
/usr/lib64/libevent_pthreads-2.1.so.6
/usr/lib64/libevent_pthreads-2.1.so.6.0.2
/usr/share/doc/libevent
/usr/share/doc/libevent/ChangeLog
/usr/share/licenses/libevent
/usr/share/licenses/libevent/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/781abd78b9414db4717fde0551a95f27166d1c
/usr/lib/.build-id/63
/usr/lib/.build-id/63/f67eabea1859d96242c4d513c6b9deaac57318
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/243a759f3f846a2ca40d33961c8327921f8fde
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/8f0094c8d5544c7f64c19723230491064dc49f
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/79f2ceecfd58b784c674d9c402c4a4e9cca961
/usr/lib/libevent-2.1.so.6
/usr/lib/libevent-2.1.so.6.0.2
/usr/lib/libevent_core-2.1.so.6
/usr/lib/libevent_core-2.1.so.6.0.2
/usr/lib/libevent_extra-2.1.so.6
/usr/lib/libevent_extra-2.1.so.6.0.2
/usr/lib/libevent_openssl-2.1.so.6
/usr/lib/libevent_openssl-2.1.so.6.0.2
/usr/lib/libevent_pthreads-2.1.so.6
/usr/lib/libevent_pthreads-2.1.so.6.0.2
/usr/share/doc/libevent
/usr/share/doc/libevent/ChangeLog
/usr/share/licenses/libevent
/usr/share/licenses/libevent/LICENSE
References
Summary
In this tutorial we learn how to install libevent
on Rocky Linux 8 using yum and dnf.