How To Install libfest-test-java on Debian 9

In this tutorial we learn how to install libfest-test-java on Debian 9. libfest-test-java is common testing code for FEST (Fixtures for Easy Software Testing) packages

Introduction

In this tutorial we learn how to install libfest-test-java on Debian 9.

What is libfest-test-java

libfest-test-java is:

FEST Assertions is a Java library that provides a fluent interface for writing assertions. It’s main goal is to improve test code readability and make maintenance of tests easier. FEST Assertions can be used with either JUnit or TestNG.

This package contains common test utilities used for building other packages in the FEST framework.

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

Install libfest-test-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 libfest-test-java using apt-get by running the following command:

sudo apt-get -y install libfest-test-java

Install libfest-test-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libfest-test-java

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

sudo aptitude -y install libfest-test-java

How To Uninstall libfest-test-java on Debian 9

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

sudo apt-get remove libfest-test-java

Uninstall libfest-test-java And Its Dependencies

To uninstall libfest-test-java and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libfest-test-java

Remove libfest-test-java Configurations and Data

To remove libfest-test-java configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libfest-test-java

Remove libfest-test-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libfest-test-java

Dependencies

libfest-test-java have the following dependencies:

References

Summary

In this tutorial we learn how to install libfest-test-java package on Debian 9 using different package management tools: apt, apt-get and aptitude.