How To Install libjas-plotter-java on Ubuntu 18.04

In this tutorial we learn how to install libjas-plotter-java on Ubuntu 18.04. libjas-plotter-java is JAS(2) Plotter graphic library

Introduction

In this tutorial we learn how to install libjas-plotter-java on Ubuntu 18.04.

What is libjas-plotter-java

libjas-plotter-java is:

This library, part of the Java Analysis Studio distribution, is able to draw various sorts of plots, such as monodimensional and bidimensinal histograms, scatter plots or function fits. Many aspects of the plots, such as the color or the style of the lines, can also be interactively modified via a Swing interface.

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

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

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

sudo apt-get -y install libjas-plotter-java

Install libjas-plotter-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjas-plotter-java

Install libjas-plotter-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libjas-plotter-java

How To Uninstall libjas-plotter-java on Ubuntu 18.04

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

sudo apt-get remove libjas-plotter-java

Uninstall libjas-plotter-java And Its Dependencies

To uninstall libjas-plotter-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libjas-plotter-java

Remove libjas-plotter-java Configurations and Data

To remove libjas-plotter-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjas-plotter-java

Remove libjas-plotter-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjas-plotter-java

References

Summary

In this tutorial we learn how to install libjas-plotter-java package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.