How To Install ocplib-simplex-ocaml-dev on Ubuntu 18.04

In this tutorial we learn how to install ocplib-simplex-ocaml-dev on Ubuntu 18.04. ocplib-simplex-ocaml-dev is simplex library for solving linear inequalities

Introduction

In this tutorial we learn how to install ocplib-simplex-ocaml-dev on Ubuntu 18.04.

What is ocplib-simplex-ocaml-dev

ocplib-simplex-ocaml-dev is:

ocplib-simplex is a (fully) functional OCaml implementation of the simplex algorithm for solving systems of linear inequalities. The implementation is incremental and backtrackable. It is able to extract unsat-cores for unsatisfiable problems, and supports linear optimization.

There are three methods to install ocplib-simplex-ocaml-dev 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 ocplib-simplex-ocaml-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 ocplib-simplex-ocaml-dev using apt-get by running the following command:

sudo apt-get -y install ocplib-simplex-ocaml-dev

Install ocplib-simplex-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ocplib-simplex-ocaml-dev using apt by running the following command:

sudo apt -y install ocplib-simplex-ocaml-dev

Install ocplib-simplex-ocaml-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ocplib-simplex-ocaml-dev using aptitude by running the following command:

sudo aptitude -y install ocplib-simplex-ocaml-dev

How To Uninstall ocplib-simplex-ocaml-dev on Ubuntu 18.04

To uninstall only the ocplib-simplex-ocaml-dev package we can use the following command:

sudo apt-get remove ocplib-simplex-ocaml-dev

Uninstall ocplib-simplex-ocaml-dev And Its Dependencies

To uninstall ocplib-simplex-ocaml-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ocplib-simplex-ocaml-dev

Remove ocplib-simplex-ocaml-dev Configurations and Data

To remove ocplib-simplex-ocaml-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ocplib-simplex-ocaml-dev

Remove ocplib-simplex-ocaml-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ocplib-simplex-ocaml-dev

References

Summary

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