How To Install libunirest-java-java on Kali Linux
Introduction
In this tutorial we learn how to install libunirest-java-java on Kali Linux.
What is libunirest-java-java
libunirest-java-java is:
Unirest is a set of lightweight HTTP libraries available in multiple languages
Features:
- Make GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS requests
- Both synchronous and asynchronous (non-blocking) requests
- It supports form parameters, file uploads and custom body entities
- Easily add route parameters without ugly string concatenations
- Supports gzip
- Supports Basic Authentication natively
- Customizable timeout, concurrency levels and proxy settings
- Customizable default headers for every request (DRY)
- Customizable HttpClient and HttpAsyncClient implementation
- Automatic JSON parsing into a native object for JSON responses
- Customizable binding, with mapping from response body to java Object
There are three methods to install libunirest-java-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 libunirest-java-java Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libunirest-java-java using apt-get by running the following command:
sudo apt-get -y install libunirest-java-javaInstall libunirest-java-java Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libunirest-java-java using apt by running the following command:
sudo apt -y install libunirest-java-javaInstall libunirest-java-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 libunirest-java-java using aptitude by running the following command:
sudo aptitude -y install libunirest-java-javaHow To Uninstall libunirest-java-java on Kali Linux
To uninstall only the libunirest-java-java package we can use the following command:
sudo apt-get remove libunirest-java-javaUninstall libunirest-java-java And Its Dependencies
To uninstall libunirest-java-java and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libunirest-java-javaRemove libunirest-java-java Configurations and Data
To remove libunirest-java-java configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libunirest-java-javaRemove libunirest-java-java configuration, data, and all of its dependencies
We can use the following command to remove libunirest-java-java configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libunirest-java-javaDependencies
libunirest-java-java have the following dependencies:
References
Summary
In this tutorial we learn how to install libunirest-java-java package on Kali Linux using different package management tools: apt, apt-get and aptitude.