How To Install libjson-java on Kali Linux
Introduction
In this tutorial we learn how to install libjson-java on Kali Linux.
What is libjson-java
libjson-java is:
JSON-lib is a java library for transforming beans, maps, collections, java arrays and XML to JSON and back again to beans and DynaBeans.
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.
There are three methods to install libjson-java 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 libjson-java Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libjson-java using apt-get by running the following command:
sudo apt-get -y install libjson-javaInstall libjson-java Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libjson-java using apt by running the following command:
sudo apt -y install libjson-javaInstall libjson-java 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 updateAfter updating apt database, We can install libjson-java using aptitude by running the following command:
sudo aptitude -y install libjson-javaHow To Uninstall libjson-java on Kali Linux
To uninstall only the libjson-java package we can use the following command:
sudo apt-get remove libjson-javaUninstall libjson-java And Its Dependencies
To uninstall libjson-java and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libjson-javaRemove libjson-java Configurations and Data
To remove libjson-java configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libjson-javaRemove libjson-java configuration, data, and all of its dependencies
We can use the following command to remove libjson-java configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libjson-javaDependencies
libjson-java have the following dependencies:
- groovy
- libcommons-beanutils-java
- libcommons-collections3-java
- libcommons-lang-java
- libcommons-logging-java
- libezmorph-java
- liboro-java
- libxom-java
References
Summary
In this tutorial we learn how to install libjson-java package on Kali Linux using different package management tools: apt, apt-get and aptitude.