How To Install libgraflib1-gfortran on Debian 9

In this tutorial we learn how to install libgraflib1-gfortran on Debian 9. libgraflib1-gfortran is CERNLIB data analysis suite - graphical library

Introduction

In this tutorial we learn how to install libgraflib1-gfortran on Debian 9.

What is libgraflib1-gfortran

libgraflib1-gfortran is:

CERNLIB is a suite of data analysis tools and libraries created for use in physics experiments, but also with applications to other fields such as the biological sciences.

The graflib library includes the HPLOT and DZDOC systems. HPLOT is a graphing facility intended to produce drawings and slides of histograms (and other data) of a quality suitable to talks and publications. DZDOC provides a method of viewing CERNLIB’s ZEBRA data structures.

In order to compile and link programs against this library, you must also install the libgraflib1-dev package.

There are three methods to install libgraflib1-gfortran 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 libgraflib1-gfortran Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libgraflib1-gfortran

Install libgraflib1-gfortran Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgraflib1-gfortran

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

sudo aptitude -y install libgraflib1-gfortran

How To Uninstall libgraflib1-gfortran on Debian 9

To uninstall only the libgraflib1-gfortran package we can use the following command:

sudo apt-get remove libgraflib1-gfortran

Uninstall libgraflib1-gfortran And Its Dependencies

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

sudo apt-get -y autoremove libgraflib1-gfortran

Remove libgraflib1-gfortran Configurations and Data

To remove libgraflib1-gfortran configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libgraflib1-gfortran

Remove libgraflib1-gfortran configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgraflib1-gfortran

Dependencies

libgraflib1-gfortran have the following dependencies:

References

Summary

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