How To Install libgraflib1-dev on Ubuntu 18.04

In this tutorial we learn how to install libgraflib1-dev on Ubuntu 18.04. libgraflib1-dev is CERNLIB data analysis suite - graphical library (development files)

Introduction

In this tutorial we learn how to install libgraflib1-dev on Ubuntu 18.04.

What is libgraflib1-dev

libgraflib1-dev 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.

This package includes a static version of graflib, as well as C and FORTRAN header files.

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

sudo apt-get -y install libgraflib1-dev

Install libgraflib1-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgraflib1-dev

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

sudo aptitude -y install libgraflib1-dev

How To Uninstall libgraflib1-dev on Ubuntu 18.04

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

sudo apt-get remove libgraflib1-dev

Uninstall libgraflib1-dev And Its Dependencies

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

sudo apt-get -y autoremove libgraflib1-dev

Remove libgraflib1-dev Configurations and Data

To remove libgraflib1-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libgraflib1-dev

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

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

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

References

Summary

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