How To Install liblutok-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install liblutok-dev
on Ubuntu 20.04.
What is liblutok-dev
liblutok-dev is:
Lutok provides thin C++ wrappers around the Lua C API to ease the interaction between C++ and Lua. These wrappers make intensive use of RAII to prevent resource leakage, expose C++-friendly data types, report errors by means of exceptions and ensure that the Lua stack is always left untouched in the face of errors. The library also provides a small subset of miscellaneous utility functions built on top of the wrappers.
Lutok focuses on providing a clean and safe C++ interface; the drawback is that it is not suitable for performance-critical environments. In order to implement error-safe C++ wrappers on top of a Lua C binary library, Lutok adds several layers or abstraction and error checking that go against the original spirit of the Lua C API and thus degrade performance.
This package contains development files (headers, pkg-config files, …)
There are three methods to install liblutok-dev
on Ubuntu 20.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 liblutok-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install liblutok-dev
using apt-get
by running the following command:
sudo apt-get -y install liblutok-dev
Install liblutok-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install liblutok-dev
using apt
by running the following command:
sudo apt -y install liblutok-dev
Install liblutok-dev 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 liblutok-dev
using aptitude
by running the following command:
sudo aptitude -y install liblutok-dev
How To Uninstall liblutok-dev on Ubuntu 20.04
To uninstall only the liblutok-dev
package we can use the following command:
sudo apt-get remove liblutok-dev
Uninstall liblutok-dev And Its Dependencies
To uninstall liblutok-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove liblutok-dev
Remove liblutok-dev Configurations and Data
To remove liblutok-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge liblutok-dev
Remove liblutok-dev configuration, data, and all of its dependencies
We can use the following command to remove liblutok-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge liblutok-dev
References
Summary
In this tutorial we learn how to install liblutok-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.