How To Install lua-ljsyscall on Ubuntu 18.04

In this tutorial we learn how to install lua-ljsyscall on Ubuntu 18.04. lua-ljsyscall is Unix system calls for LuaJIT

Introduction

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

What is lua-ljsyscall

lua-ljsyscall is:

A foreign function interface (FFI) implementation of the Linux, NetBSD, FreeBSD and OSX kernel ABIs for LuaJIT. This means you will be able to program all the functionality the Unix kernel provides to userspace directly in Lua. You can view it as a high level language equivalent of the Busybox project in a way, although the functionality it provides is somewhat different, and the interface very different.

This package also contains documentation.

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

sudo apt-get -y install lua-ljsyscall

Install lua-ljsyscall Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lua-ljsyscall

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

sudo aptitude -y install lua-ljsyscall

How To Uninstall lua-ljsyscall on Ubuntu 18.04

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

sudo apt-get remove lua-ljsyscall

Uninstall lua-ljsyscall And Its Dependencies

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

sudo apt-get -y autoremove lua-ljsyscall

Remove lua-ljsyscall Configurations and Data

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

sudo apt-get -y purge lua-ljsyscall

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

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

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

References

Summary

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