How To Install libevent on Fedora 34

libevent is Abstract asynchronous event notification library Abstract asynchronous event notification library

Introduction

In this tutorial we learn how to install libevent on Fedora 34.

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. libevent 2.1.12 3.fc34 x86_64 268 k libevent-2.1.12-3.fc34.src.rpm fedora Abstract asynchronous event notification library http BSD and ISC 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install libevent.

Install libevent on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install libevent

Install libevent on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 34

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

sudo dnf remove libevent

libevent Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/65fda28c057108c7427c478f95cc1db44b15a5
/usr/lib/.build-id/60
/usr/lib/.build-id/60/a00bebcaa2a0ac44cac77731acb6a84e8b566e
/usr/lib/.build-id/69
/usr/lib/.build-id/69/84cd727ec0cceefe21a5bd3635f894363bfa07
/usr/lib/.build-id/99
/usr/lib/.build-id/99/f2439d9df3df99c40cf7ce63d487db9804775b
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/cee648173fbd92d3fb498b812c2158a5068345
/usr/lib/libevent-2.1.so.7
/usr/lib/libevent-2.1.so.7.0.1
/usr/lib/libevent_core-2.1.so.7
/usr/lib/libevent_core-2.1.so.7.0.1
/usr/lib/libevent_extra-2.1.so.7
/usr/lib/libevent_extra-2.1.so.7.0.1
/usr/lib/libevent_openssl-2.1.so.7
/usr/lib/libevent_openssl-2.1.so.7.0.1
/usr/lib/libevent_pthreads-2.1.so.7
/usr/lib/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
/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/7e8928f3e2ebe845d24b408dfa2afb5909819c
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/e40e1d2f3c0daee9b045bb8c61c58806c2ca03
/usr/lib/.build-id/99
/usr/lib/.build-id/99/4948d49018e7d01be11feadaa84bc6c8bcd18e
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/d4a82b8c672edce5b961a1b651528035b8d42b
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/a8400aa7524b06f737f7535cccfa1975c33d62
/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 34 using yum and dnf.