Introduction
In this tutorial we learn how to install libghc-graphviz-dev
on Ubuntu 18.04.
What is libghc-graphviz-dev
libghc-graphviz-dev is:
This library provides bindings for the Dot language used by the
Graphviz (http://graphviz.org/) suite of programs for visualising
graphs, as well as functions to call those programs.
Main features of the graphviz library include:
Almost complete coverage of all Graphviz attributes and syntax.
Support for specifying clusters.
The ability to use a custom node type.
Functions for running a Graphviz layout tool with all specified output
types.
The ability to not only generate but also parse Dot code with two
options: strict and liberal (in terms of ordering of statements).
Functions to convert FGL graphs and other graph-like data structures
to Dot code – including support to group them into clusters – with a
high degree of customisation by specifying which attributes to use
and limited support for the inverse operation.
Round-trip support for passing an FGL graph through Graphviz to
augment node and edge labels with positional information, etc.
This package provides a library for the Haskell programming language.
See http://www.haskell.org/ for more information on Haskell.
There are three methods to install libghc-graphviz-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 libghc-graphviz-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 libghc-graphviz-dev
using apt-get
by running the following command:
sudo apt-get -y install libghc-graphviz-dev
Install libghc-graphviz-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libghc-graphviz-dev
using apt
by running the following command:
sudo apt -y install libghc-graphviz-dev
Install libghc-graphviz-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 libghc-graphviz-dev
using aptitude
by running the following command:
sudo aptitude -y install libghc-graphviz-dev
How To Uninstall libghc-graphviz-dev on Ubuntu 18.04
To uninstall only the libghc-graphviz-dev
package we can use the following command:
sudo apt-get remove libghc-graphviz-dev
Uninstall libghc-graphviz-dev And Its Dependencies
To uninstall libghc-graphviz-dev
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libghc-graphviz-dev
Remove libghc-graphviz-dev Configurations and Data
To remove libghc-graphviz-dev
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libghc-graphviz-dev
Remove libghc-graphviz-dev configuration, data, and all of its dependencies
We can use the following command to remove libghc-graphviz-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-graphviz-dev
References
Summary
In this tutorial we learn how to install libghc-graphviz-dev
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.