How To Install lua-cqueues on Ubuntu 18.04

In this tutorial we learn how to install lua-cqueues on Ubuntu 18.04. lua-cqueues is event loop for Lua

Introduction

In this tutorial we learn how to install lua-cqueues on Ubuntu 18.04.

What is lua-cqueues

lua-cqueues is:

cqueues is a type of event loop for Lua, except it’s not a classic event loop. It doesn’t use callbacks—neither as part of the API nor internally—but instead you communicate with an event controller by the yielding and resumption of Lua coroutines using objects that adhere to a simple interface.

There are three methods to install lua-cqueues on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install lua-cqueues Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install lua-cqueues using apt-get by running the following command:

sudo apt-get -y install lua-cqueues

Install lua-cqueues Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install lua-cqueues using apt by running the following command:

sudo apt -y install lua-cqueues

Install lua-cqueues Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install lua-cqueues using aptitude by running the following command:

sudo aptitude -y install lua-cqueues

How To Uninstall lua-cqueues on Ubuntu 18.04

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

sudo apt-get remove lua-cqueues

Uninstall lua-cqueues And Its Dependencies

To uninstall lua-cqueues and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove lua-cqueues

Remove lua-cqueues Configurations and Data

To remove lua-cqueues configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge lua-cqueues

Remove lua-cqueues configuration, data, and all of its dependencies

We can use the following command to remove lua-cqueues configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge lua-cqueues

References

Summary

In this tutorial we learn how to install lua-cqueues package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.