How To Install coinor-libcgl-dev on Debian 9

In this tutorial we learn how to install coinor-libcgl-dev on Debian 9. coinor-libcgl-dev is COIN-OR Cut Generation Library (developer files)

Introduction

In this tutorial we learn how to install coinor-libcgl-dev on Debian 9.

What is coinor-libcgl-dev

coinor-libcgl-dev is:

The Cut Generation Library (Cgl) is an open collection of cutting plane implementations (“cut generators”) for use in teaching, research, and applications.

Cgl is part of the larger COIN-OR initiative (Computational Infrastructure for Operations Research) and can be used with other COIN-OR packages that make use of cuts, such as the mixed-integer linear programming solver Cbc.

This package contains the header files for developers.

There are three methods to install coinor-libcgl-dev on Debian 9. 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-libcgl-dev 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-libcgl-dev using apt-get by running the following command:

sudo apt-get -y install coinor-libcgl-dev

Install coinor-libcgl-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install coinor-libcgl-dev

Install coinor-libcgl-dev 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install coinor-libcgl-dev

How To Uninstall coinor-libcgl-dev on Debian 9

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

sudo apt-get remove coinor-libcgl-dev

Uninstall coinor-libcgl-dev And Its Dependencies

To uninstall coinor-libcgl-dev and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove coinor-libcgl-dev

Remove coinor-libcgl-dev Configurations and Data

To remove coinor-libcgl-dev configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge coinor-libcgl-dev

Remove coinor-libcgl-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge coinor-libcgl-dev

Dependencies

coinor-libcgl-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install coinor-libcgl-dev package on Debian 9 using different package management tools: apt, apt-get and aptitude.