How To Install graphviz-doc on Ubuntu 18.04

In this tutorial we learn how to install graphviz-doc on Ubuntu 18.04. graphviz-doc is additional documentation for graphviz

Introduction

In this tutorial we learn how to install graphviz-doc on Ubuntu 18.04.

What is graphviz-doc

graphviz-doc is:

Graphviz is a set of graph drawing tools. See the description of the graphviz package for a full description.

This package installs HTML and PDF documentation for Graphviz, as well as examples.

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

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

sudo apt-get update

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

sudo apt-get -y install graphviz-doc

Install graphviz-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install graphviz-doc

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

sudo aptitude -y install graphviz-doc

How To Uninstall graphviz-doc on Ubuntu 18.04

To uninstall only the graphviz-doc package we can use the following command:

sudo apt-get remove graphviz-doc

Uninstall graphviz-doc And Its Dependencies

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

sudo apt-get -y autoremove graphviz-doc

Remove graphviz-doc Configurations and Data

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

sudo apt-get -y purge graphviz-doc

Remove graphviz-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge graphviz-doc

References

Summary

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