How To Install sagemath-database-graphs on Ubuntu 20.04

In this tutorial we learn how to install sagemath-database-graphs on Ubuntu 20.04. sagemath-database-graphs is Databases of graphs

Introduction

In this tutorial we learn how to install sagemath-database-graphs on Ubuntu 20.04.

What is sagemath-database-graphs

sagemath-database-graphs is:

This package contains a database of graphs, created by Emily Kirkman based on the work of Jason Grout. It also contains the ISGCI graph database.

It is part of the sagemath software suite.

There are three methods to install sagemath-database-graphs on Ubuntu 20.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 sagemath-database-graphs Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install sagemath-database-graphs

Install sagemath-database-graphs Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sagemath-database-graphs

Install sagemath-database-graphs 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 sagemath-database-graphs using aptitude by running the following command:

sudo aptitude -y install sagemath-database-graphs

How To Uninstall sagemath-database-graphs on Ubuntu 20.04

To uninstall only the sagemath-database-graphs package we can use the following command:

sudo apt-get remove sagemath-database-graphs

Uninstall sagemath-database-graphs And Its Dependencies

To uninstall sagemath-database-graphs and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove sagemath-database-graphs

Remove sagemath-database-graphs Configurations and Data

To remove sagemath-database-graphs configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge sagemath-database-graphs

Remove sagemath-database-graphs configuration, data, and all of its dependencies

We can use the following command to remove sagemath-database-graphs configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge sagemath-database-graphs

References

Summary

In this tutorial we learn how to install sagemath-database-graphs package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.