How To Install libfreehep-io-java on Debian 9

In this tutorial we learn how to install libfreehep-io-java on Debian 9. libfreehep-io-java is FreeHEP I/O library

Introduction

In this tutorial we learn how to install libfreehep-io-java on Debian 9.

What is libfreehep-io-java

libfreehep-io-java is:

This library offers a collection of utility subclasses of standard IO Java classes (such as InputStrem, OutputStream, Reader and Writer), which help in dealing with encodings, byte order, tagged streams or other common IO-related issues. It is mainly used by other libraries within the FreeHEP project.

FreeHEP is a collection of Java libraries used in High Energy Physics.

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

sudo apt-get -y install libfreehep-io-java

Install libfreehep-io-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libfreehep-io-java

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

sudo aptitude -y install libfreehep-io-java

How To Uninstall libfreehep-io-java on Debian 9

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

sudo apt-get remove libfreehep-io-java

Uninstall libfreehep-io-java And Its Dependencies

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

sudo apt-get -y autoremove libfreehep-io-java

Remove libfreehep-io-java Configurations and Data

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

sudo apt-get -y purge libfreehep-io-java

Remove libfreehep-io-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libfreehep-io-java

Dependencies

libfreehep-io-java have the following dependencies:

References

Summary

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