How To Install lua-dkjson on Ubuntu 22.04
Introduction
In this tutorial we learn how to install lua-dkjson
on Ubuntu 22.04.
What is lua-dkjson
lua-dkjson is:
dkjson is a JSON (JavaScript Object Notation) encoder / decoder. It supports UTF-8.
It is written in Lua without any dependencies, but when LPeg (provided in Debian by lua-lpeg) is installed dkjson uses it to speed up decoding.
There are three methods to install lua-dkjson
on Ubuntu 22.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-dkjson 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-dkjson
using apt-get
by running the following command:
sudo apt-get -y install lua-dkjson
Install lua-dkjson Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install lua-dkjson
using apt
by running the following command:
sudo apt -y install lua-dkjson
Install lua-dkjson 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-dkjson
using aptitude
by running the following command:
sudo aptitude -y install lua-dkjson
How To Uninstall lua-dkjson on Ubuntu 22.04
To uninstall only the lua-dkjson
package we can use the following command:
sudo apt-get remove lua-dkjson
Uninstall lua-dkjson And Its Dependencies
To uninstall lua-dkjson
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove lua-dkjson
Remove lua-dkjson Configurations and Data
To remove lua-dkjson
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge lua-dkjson
Remove lua-dkjson configuration, data, and all of its dependencies
We can use the following command to remove lua-dkjson
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge lua-dkjson
References
Summary
In this tutorial we learn how to install lua-dkjson
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.