How To Install libgoogle-http-client-java on Kali Linux
Introduction
In this tutorial we learn how to install libgoogle-http-client-java
on Kali Linux.
What is libgoogle-http-client-java
libgoogle-http-client-java is:
Written by Google, the Google HTTP Client Library for Java is a flexible, efficient, and powerful Java library for accessing any resource on the web via HTTP. The library has the following features:
- Pluggable HTTP transport abstraction that allows you to use any low- level library such as java.net.HttpURLConnection, Apache HTTP Client, or URL Fetch on Google App Engine.
- Efficient JSON and XML data models for parsing and serialization of HTTP response and request content. The JSON and XML libraries are also fully pluggable, and they include support for Jackson and Android’s GSON libraries for JSON.
There are three methods to install libgoogle-http-client-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 libgoogle-http-client-java Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libgoogle-http-client-java
using apt-get
by running the following command:
sudo apt-get -y install libgoogle-http-client-java
Install libgoogle-http-client-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgoogle-http-client-java
using apt
by running the following command:
sudo apt -y install libgoogle-http-client-java
Install libgoogle-http-client-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 update
After updating apt database, We can install libgoogle-http-client-java
using aptitude
by running the following command:
sudo aptitude -y install libgoogle-http-client-java
How To Uninstall libgoogle-http-client-java on Kali Linux
To uninstall only the libgoogle-http-client-java
package we can use the following command:
sudo apt-get remove libgoogle-http-client-java
Uninstall libgoogle-http-client-java And Its Dependencies
To uninstall libgoogle-http-client-java
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libgoogle-http-client-java
Remove libgoogle-http-client-java Configurations and Data
To remove libgoogle-http-client-java
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libgoogle-http-client-java
Remove libgoogle-http-client-java configuration, data, and all of its dependencies
We can use the following command to remove libgoogle-http-client-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgoogle-http-client-java
Dependencies
libgoogle-http-client-java have the following dependencies:
- libguava-java
- libhttpclient-java
- libhttpcore-java
- libjackson2-core-java
- libjsr305-java
- libopencensus-java
References
Summary
In this tutorial we learn how to install libgoogle-http-client-java
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.