How To Install libbsh-java on Kali Linux

In this tutorial we learn how to install libbsh-java on Kali Linux. libbsh-java is Java scripting environment (BeanShell) Version 2 (library)

Introduction

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

What is libbsh-java

libbsh-java is:

BeanShell is a small, free, embeddable, Java source interpreter with object scripting language features, written in Java. BeanShell executes standard Java statements and expressions, in addition to obvious scripting commands and syntax. BeanShell supports scripted objects as simple method closures like those in Perl and JavaScript(tm).

You can use BeanShell interactively for Java experimentation and debugging or as a simple scripting engine for you applications. In short: BeanShell is a dynamically interpreted Java, plus some useful stuff.

This package contains the Java library without the command line tools.

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

sudo apt-get -y install libbsh-java

Install libbsh-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libbsh-java

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

sudo aptitude -y install libbsh-java

How To Uninstall libbsh-java on Kali Linux

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

sudo apt-get remove libbsh-java

Uninstall libbsh-java And Its Dependencies

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

sudo apt-get -y autoremove libbsh-java

Remove libbsh-java Configurations and Data

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

sudo apt-get -y purge libbsh-java

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

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

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

Dependencies

libbsh-java have the following dependencies:

References

Summary

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