How To Install libevent-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libevent-devel.x86_64 in Amazon Linux 2. libevent-devel.x86_64 is Header files, libraries and development documentation for libevent

Introduction

In this tutorial we learn how to install libevent-devel.x86_64 on Amazon Linux 2.

What is libevent-devel.x86_64

This package contains the header files, static libraries and development documentation for libevent. If you like to develop programs using libevent, you will need to install libevent-devel.

We can use yum to install libevent-devel.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-devel.x86_64.

Install libevent-devel.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-devel.x86_64 using yum by running the following command:

sudo yum -y install libevent-devel.x86_64

How To Uninstall libevent-devel.x86_64 on Amazon Linux 2

To uninstall only the libevent-devel.x86_64 package we can use the following command:

sudo yum remove libevent-devel.x86_64

libevent-devel.x86_64 Package Contents on Amazon Linux 2

/usr/bin/event_rpcgen.py
/usr/include/evdns.h
/usr/include/event.h
/usr/include/event2/buffer.h
/usr/include/event2/buffer_compat.h
/usr/include/event2/bufferevent.h
/usr/include/event2/bufferevent_compat.h
/usr/include/event2/bufferevent_ssl.h
/usr/include/event2/bufferevent_struct.h
/usr/include/event2/dns.h
/usr/include/event2/dns_compat.h
/usr/include/event2/dns_struct.h
/usr/include/event2/event-config.h
/usr/include/event2/event.h
/usr/include/event2/event_compat.h
/usr/include/event2/event_struct.h
/usr/include/event2/http.h
/usr/include/event2/http_compat.h
/usr/include/event2/http_struct.h
/usr/include/event2/keyvalq_struct.h
/usr/include/event2/listener.h
/usr/include/event2/rpc.h
/usr/include/event2/rpc_compat.h
/usr/include/event2/rpc_struct.h
/usr/include/event2/tag.h
/usr/include/event2/tag_compat.h
/usr/include/event2/thread.h
/usr/include/event2/util.h
/usr/include/evhttp.h
/usr/include/evrpc.h
/usr/include/evutil.h
/usr/lib64/libevent.so
/usr/lib64/libevent_core.so
/usr/lib64/libevent_extra.so
/usr/lib64/libevent_openssl.so
/usr/lib64/libevent_pthreads.so
/usr/lib64/pkgconfig/libevent.pc
/usr/lib64/pkgconfig/libevent_openssl.pc
/usr/lib64/pkgconfig/libevent_pthreads.pc

References

Summary

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