How To Install libgraphics-gnuplotif-perl on Ubuntu 18.04

In this tutorial we learn how to install libgraphics-gnuplotif-perl on Ubuntu 18.04. libgraphics-gnuplotif-perl is dynamic Perl interface to gnuplot

Introduction

In this tutorial we learn how to install libgraphics-gnuplotif-perl on Ubuntu 18.04.

What is libgraphics-gnuplotif-perl

libgraphics-gnuplotif-perl is:

Graphics::GnuplotIF is a simple and easy to use dynamic Perl interface to gnuplot. It enables sending display requests asynchronously to gnuplot through simple Perl subroutine calls.

Several independent plots can be started from one script. Each plot has its own pipe. All pipes will be closed automatically by the destructor when the script terminates. The gnuplot processes terminate when the corresponding pipes are closed. Their graphical output will then disappear (but see parameter persist|new).

There are three methods to install libgraphics-gnuplotif-perl 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 libgraphics-gnuplotif-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libgraphics-gnuplotif-perl using apt-get by running the following command:

sudo apt-get -y install libgraphics-gnuplotif-perl

Install libgraphics-gnuplotif-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libgraphics-gnuplotif-perl using apt by running the following command:

sudo apt -y install libgraphics-gnuplotif-perl

Install libgraphics-gnuplotif-perl 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 libgraphics-gnuplotif-perl using aptitude by running the following command:

sudo aptitude -y install libgraphics-gnuplotif-perl

How To Uninstall libgraphics-gnuplotif-perl on Ubuntu 18.04

To uninstall only the libgraphics-gnuplotif-perl package we can use the following command:

sudo apt-get remove libgraphics-gnuplotif-perl

Uninstall libgraphics-gnuplotif-perl And Its Dependencies

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

sudo apt-get -y autoremove libgraphics-gnuplotif-perl

Remove libgraphics-gnuplotif-perl Configurations and Data

To remove libgraphics-gnuplotif-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libgraphics-gnuplotif-perl

Remove libgraphics-gnuplotif-perl configuration, data, and all of its dependencies

We can use the following command to remove libgraphics-gnuplotif-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libgraphics-gnuplotif-perl

References

Summary

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