How To Install coinor-csdp on Ubuntu 18.04

In this tutorial we learn how to install coinor-csdp on Ubuntu 18.04. coinor-csdp is A software package for semidefinite programming

Introduction

In this tutorial we learn how to install coinor-csdp on Ubuntu 18.04.

What is coinor-csdp

coinor-csdp is:

CSDP is a library of routines that implements a predictor corrector variant of the semidefinite programming algorithm of Helmberg, Rendl, Vanderbei, and Wolkowicz. The code runs in parallel on shared memory multi-processor systems, and it makes effective use of sparsity in the constraint matrices.

CSDP is part of the larger COIN-OR initiative (Computational Infrastructure for Operations Research).

This package contains the binaries.

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

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

sudo apt-get update

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

sudo apt-get -y install coinor-csdp

Install coinor-csdp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install coinor-csdp

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

sudo aptitude -y install coinor-csdp

How To Uninstall coinor-csdp on Ubuntu 18.04

To uninstall only the coinor-csdp package we can use the following command:

sudo apt-get remove coinor-csdp

Uninstall coinor-csdp And Its Dependencies

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

sudo apt-get -y autoremove coinor-csdp

Remove coinor-csdp Configurations and Data

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

sudo apt-get -y purge coinor-csdp

Remove coinor-csdp configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge coinor-csdp

References

Summary

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