How To Install cohomcalg-common on Ubuntu 22.04

In this tutorial we learn how to install cohomcalg-common on Ubuntu 22.04. cohomcalg-common is sheaf cohomology of line bundles on toric varieties (common files)

Introduction

In this tutorial we learn how to install cohomcalg-common on Ubuntu 22.04.

What is cohomcalg-common

cohomcalg-common is:

The algorithm for the computation of sheaf cohomologies for line bundles on toric varieties presented in “Cohomology of Line Bundles: A Computational Algorithm” by Ralph Blumenhagen, Benjamin Jurke, Thorsten Rahn, and Helmut Roschy has been implemented in a convenient and high-performance C/C++ application called cohomCalg.

The optional cohomCalg Koszul extension serves as a Mathematica 7 frontend and allows for the easy computation of hypersurface and complete intersection cohomologies, following the material presented in “Cohomology of Line Bundles: Applications” by the same authors.

This package contains the documentation, example files, and Mathematica scripts included with cohomCalg.

There are three methods to install cohomcalg-common on Ubuntu 22.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 cohomcalg-common Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install cohomcalg-common

Install cohomcalg-common Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install cohomcalg-common

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

sudo aptitude -y install cohomcalg-common

How To Uninstall cohomcalg-common on Ubuntu 22.04

To uninstall only the cohomcalg-common package we can use the following command:

sudo apt-get remove cohomcalg-common

Uninstall cohomcalg-common And Its Dependencies

To uninstall cohomcalg-common and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove cohomcalg-common

Remove cohomcalg-common Configurations and Data

To remove cohomcalg-common configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge cohomcalg-common

Remove cohomcalg-common configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cohomcalg-common

References

Summary

In this tutorial we learn how to install cohomcalg-common package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.