How To Install libjsmn-dev on Kali Linux
Introduction
In this tutorial we learn how to install libjsmn-dev
on Kali Linux.
What is libjsmn-dev
libjsmn-dev is:
Most JSON parsers offer you a bunch of functions to load JSON data, parse it and extract any value by its name. jsmn proves that checking the correctness of every JSON packet or allocating temporary objects to store parsed JSON fields often is an overkill.
jsmn is designed to be robust (it should work fine even with erroneous data), fast (it should parse data on the fly), portable (no superfluous dependencies or non-standard C extensions). And of course, simplicity is a key feature - simple code style, simple algorithm, simple integration into other projects.
Features
- compatible with C89
- no dependencies (even libc!)
- highly portable (tested on x86/amd64, ARM, AVR)
- about 200 lines of code
- extremely small code footprint
- API contains only 2 functions
- no dynamic memory allocation
- incremental single-pass parsing
- library code is covered with unit-tests
There are three methods to install libjsmn-dev
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libjsmn-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 libjsmn-dev
using apt-get
by running the following command:
sudo apt-get -y install libjsmn-dev
Install libjsmn-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libjsmn-dev
using apt
by running the following command:
sudo apt -y install libjsmn-dev
Install libjsmn-dev Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libjsmn-dev
using aptitude
by running the following command:
sudo aptitude -y install libjsmn-dev
How To Uninstall libjsmn-dev on Kali Linux
To uninstall only the libjsmn-dev
package we can use the following command:
sudo apt-get remove libjsmn-dev
Uninstall libjsmn-dev And Its Dependencies
To uninstall libjsmn-dev
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libjsmn-dev
Remove libjsmn-dev Configurations and Data
To remove libjsmn-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libjsmn-dev
Remove libjsmn-dev configuration, data, and all of its dependencies
We can use the following command to remove libjsmn-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libjsmn-dev
Dependencies
libjsmn-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libjsmn-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.