How To Install lua-event on Rocky Linux 8

In this tutorial we learn how to install lua-event on Rocky Linux 8. lua-event is This is a binding of libevent to Lua

Introduction

In this tutorial we learn how to install lua-event on Rocky Linux 8.

What is lua-event

This package contains the bindings for libevent, a synchronous event notification library that provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached.

We can use yum or dnf to install lua-event on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install lua-event.

Install lua-event 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 lua-event using dnf by running the following command:

sudo dnf -y install lua-event

Install lua-event 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 lua-event using yum by running the following command:

sudo yum -y install lua-event

How To Uninstall lua-event on Rocky Linux 8

To uninstall only the lua-event package we can use the following command:

sudo dnf remove lua-event

lua-event Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/38
/usr/lib/.build-id/38/f41a886318d2de41fa90f585debf88c5af09e6
/usr/lib64/lua/5.3/luaevent
/usr/lib64/lua/5.3/luaevent/core.so
/usr/share/doc/lua-event
/usr/share/doc/lua-event/CHANGELOG
/usr/share/doc/lua-event/COPYING
/usr/share/doc/lua-event/COROUTINE_MANAGEMENT
/usr/share/doc/lua-event/PLAN
/usr/share/doc/lua-event/README
/usr/share/doc/lua-event/api.mdwn
/usr/share/doc/lua-event/index.mdwn
/usr/share/doc/lua-event/modules
/usr/share/doc/lua-event/modules/luaevent.core.buffer.mdwn
/usr/share/doc/lua-event/modules/luaevent.core.bufferevent.mdwn
/usr/share/doc/lua-event/modules/luaevent.core.mdwn
/usr/share/lua/5.3/luaevent.lua

References

Summary

In this tutorial we learn how to install lua-event on Rocky Linux 8 using yum and dnf.