How To Install libunbescape-java on Kali Linux

In this tutorial we learn how to install libunbescape-java on Kali Linux. libunbescape-java is advanced yet easy-to-use escape/unescape library for Java

Introduction

In this tutorial we learn how to install libunbescape-java on Kali Linux.

What is libunbescape-java

libunbescape-java is:

unbescape is a Java library aimed at performing fully-featured and high-performance escape and unescape operations for:

  • HTML5 and HTML 4
  • XML 1.0 and XML 1.1
  • JavaScript
  • JSON
  • URI / URL (both paths and query parameters)
  • CSS (both identifiers and string literals)
  • CSV (Comma-Separated Values)
  • Java literals
  • Java .properties files (both keys and values)

Its goals are:

  • To be easy to use. Few lines of code needed. No additional dependencies.
  • To be fast. Faster and lighter than most other options available in Java.
  • To be versatile. Provides different escaping types and levels in order to better adapt to different scenarios and contexts.
  • To be feature-complete. Includes full HTML5 support, careful implementation of the JavaScript, JSON, Java, etc specifications, streaming support…

There are three methods to install libunbescape-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 libunbescape-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 libunbescape-java using apt-get by running the following command:

sudo apt-get -y install libunbescape-java

Install libunbescape-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libunbescape-java using apt by running the following command:

sudo apt -y install libunbescape-java

Install libunbescape-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 libunbescape-java using aptitude by running the following command:

sudo aptitude -y install libunbescape-java

How To Uninstall libunbescape-java on Kali Linux

To uninstall only the libunbescape-java package we can use the following command:

sudo apt-get remove libunbescape-java

Uninstall libunbescape-java And Its Dependencies

To uninstall libunbescape-java and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libunbescape-java

Remove libunbescape-java Configurations and Data

To remove libunbescape-java configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libunbescape-java

Remove libunbescape-java configuration, data, and all of its dependencies

We can use the following command to remove libunbescape-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libunbescape-java

Dependencies

libunbescape-java have the following dependencies:

References

Summary

In this tutorial we learn how to install libunbescape-java package on Kali Linux using different package management tools: apt, apt-get and aptitude.