How To Install lua-luxio on Ubuntu 18.04

In this tutorial we learn how to install lua-luxio on Ubuntu 18.04. lua-luxio is Posix bindings for Lua

Introduction

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

What is lua-luxio

lua-luxio is:

Lightweight UNIX I/O and POSIX binding for Lua

  • Reasonably good coverage of POSIX and BSD Sockets, including IPv6, and some GNU extensions.
  • Low-level. You get the return values and the errno for the bound functions where possible. Others take a table to fill in, or may return tables.
  • High-level wrapper library providing nice IO access and to misc. utility functions. Generates useful errors in assert()able form, and provides meaningful __tostring metamethods to aid debugging.
  • A high-level poll()-based event dispatch library.
  • Sub-process handling library (read/write io.popen with job control).
  • A prototype POSIX Message Queue-based IPC scheme that can serialise most simple Lua values. (No closures, userdata, etc)

There are three methods to install lua-luxio 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-luxio 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-luxio using apt-get by running the following command:

sudo apt-get -y install lua-luxio

Install lua-luxio Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lua-luxio

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

sudo aptitude -y install lua-luxio

How To Uninstall lua-luxio on Ubuntu 18.04

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

sudo apt-get remove lua-luxio

Uninstall lua-luxio And Its Dependencies

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

sudo apt-get -y autoremove lua-luxio

Remove lua-luxio Configurations and Data

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

sudo apt-get -y purge lua-luxio

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

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

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

References

Summary

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