How To Install nauty-doc on Ubuntu 18.04

In this tutorial we learn how to install nauty-doc on Ubuntu 18.04. nauty-doc is library for graph automorphisms – user guide

Introduction

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

What is nauty-doc

nauty-doc is:

nauty (No AUTomorphisms, Yes?) is a set of procedures for computing automorphism groups of graphs and digraphs. This mathematical software suite is developed by Brendan McKay and Adolfo Piperno: http://pallini.di.uniroma1.it

This package provides the user guide for the nauty mathematical software suite; it also contains examples and extra technical documentations.

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

sudo apt-get -y install nauty-doc

Install nauty-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install nauty-doc

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

sudo aptitude -y install nauty-doc

How To Uninstall nauty-doc on Ubuntu 18.04

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

sudo apt-get remove nauty-doc

Uninstall nauty-doc And Its Dependencies

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

sudo apt-get -y autoremove nauty-doc

Remove nauty-doc Configurations and Data

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

sudo apt-get -y purge nauty-doc

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

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

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

References

Summary

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