How To Install lua-cqueues on Rocky Linux 8

In this tutorial we learn how to install lua-cqueues on Rocky Linux 8. lua-cqueues is Stackable Continuation Queues for the Lua Programming Language

Introduction

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

What is lua-cqueues

cqueues is a type of event loop for Lua. It doesn’t use callbacks but instead you communicate with an event controller by the yielding and resumption of Lua coroutines using objects. cqueues are stackable. Each instantiated cqueue is a poll-able object which can be polled from another cqueue, or another event loop system entirely. The design is meant to be non-intrusive, composable, and embeddable within existing applications. cqueues includes a sockets library with DNS, buffering, end-of-line translation, SSL/TLS, and descriptor passing support builtin. Domain querying, connection establishment, and SSL negotiation are handled transparently as part of a state machine entered with every I/O operation, so users can read and write immediately upon instantiating the object, as if opening a regular file. cqueues also includes modules for handling signals, threads, and file change notifications using native kernel facilities and accessible through easy to use interfaces which abstract the different kernel facilities.

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

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

sudo dnf -y install lua-cqueues

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

sudo yum -y install lua-cqueues

How To Uninstall lua-cqueues on Rocky Linux 8

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

sudo dnf remove lua-cqueues

lua-cqueues Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/c410e0ca1a678e3304e3b3c1a1a350110d943c
/usr/lib64/lua/5.3/_cqueues.so
/usr/share/licenses/lua-cqueues
/usr/share/licenses/lua-cqueues/LICENSE
/usr/share/lua/5.3/cqueues
/usr/share/lua/5.3/cqueues.lua
/usr/share/lua/5.3/cqueues/auxlib.lua
/usr/share/lua/5.3/cqueues/condition.lua
/usr/share/lua/5.3/cqueues/dns
/usr/share/lua/5.3/cqueues/dns.lua
/usr/share/lua/5.3/cqueues/dns/config.lua
/usr/share/lua/5.3/cqueues/dns/hints.lua
/usr/share/lua/5.3/cqueues/dns/hosts.lua
/usr/share/lua/5.3/cqueues/dns/packet.lua
/usr/share/lua/5.3/cqueues/dns/record.lua
/usr/share/lua/5.3/cqueues/dns/resolver.lua
/usr/share/lua/5.3/cqueues/dns/resolvers.lua
/usr/share/lua/5.3/cqueues/errno.lua
/usr/share/lua/5.3/cqueues/notify.lua
/usr/share/lua/5.3/cqueues/promise.lua
/usr/share/lua/5.3/cqueues/signal.lua
/usr/share/lua/5.3/cqueues/socket.lua
/usr/share/lua/5.3/cqueues/thread.lua

References

Summary

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