How To Install libevent on Fedora 36
Introduction
In this tutorial we learn how to install libevent on Fedora 36.
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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libevent.
Install libevent on Fedora 36 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 Fedora 36 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 Fedora 36
To uninstall only the libevent package we can use the following command:
sudo dnf remove libevent
libevent Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/61
/usr/lib/.build-id/61/f63748260405236d88263c0848dcf001d4c7d2
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/ee6cd9ac58a218309552eba7bb06ad76919f78
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/e6b19e97edf68e139792756153e571d8537aab
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/7934438b9ebe542a8d36594ca59827c8e0b8f8
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/e4e70b6ca6ab522b59e089c865e1a33d3760bf
/usr/lib64/libevent-2.1.so.7
/usr/lib64/libevent-2.1.so.7.0.1
/usr/lib64/libevent_core-2.1.so.7
/usr/lib64/libevent_core-2.1.so.7.0.1
/usr/lib64/libevent_extra-2.1.so.7
/usr/lib64/libevent_extra-2.1.so.7.0.1
/usr/lib64/libevent_openssl-2.1.so.7
/usr/lib64/libevent_openssl-2.1.so.7.0.1
/usr/lib64/libevent_pthreads-2.1.so.7
/usr/lib64/libevent_pthreads-2.1.so.7.0.1
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).