How To Install japitools on Debian 10

Learn how to install japitools on Debian 10 with this tutorial. japitools is Java API compatibility testing tools

Introduction

In this tutorial we learn how to install japitools on Debian 10.

What is japitools

japitools is:

It consists of two simple tools designed to test for compatibility between Java APIs. They were originally designed for testing free implementations of Java itself for compatibility with Sun’s JDK, but they can also be used for testing backward compatibility between versions of any API.

The tools are japize and japicompat. Japize is a Java program which emits a listing of an API in a machine-readable format. Japicompat then takes two such listings and compares them for binary compatibility, as defined by Sun in the Java Language Specification.

There are three methods to install japitools on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install japitools Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

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

sudo apt-get -y install japitools

Install japitools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install japitools using apt by running the following command:

sudo apt -y install japitools

Install japitools Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install japitools using aptitude by running the following command:

sudo aptitude -y install japitools

How To Uninstall japitools on Debian 10

To uninstall only the japitools package we can use the following command:

sudo apt-get remove japitools

Uninstall japitools And Its Dependencies

To uninstall japitools and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove japitools

Remove japitools Configurations and Data

To remove japitools configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge japitools

Remove japitools configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge japitools

Dependencies

japitools have the following dependencies:

References

Summary

In this tutorial we learn how to install japitools package on Debian 10 using different package management tools: apt, apt-get and aptitude.