How To Install libcreal-ocaml-dev on Kali Linux

In this tutorial we learn how to install libcreal-ocaml-dev on Kali Linux. libcreal-ocaml-dev is OCaml library that implements exact real arithmetic

Introduction

In this tutorial we learn how to install libcreal-ocaml-dev on Kali Linux.

What is libcreal-ocaml-dev

libcreal-ocaml-dev is:

This module implements exact real arithmetic, following Valerie Menissier-Morain Ph.D. thesis (http://www-calfor.lip6.fr/~vmm/).

A real x is represented as a function giving, for any n, an approximation zn/4^n of x such that |zn/4^n - x| < 1, where zn is an arbitrary precision integer (of type Gmp.Z.t).

Coercions from type int, Gmp.Z.t, Gmp.Q.t, basic operations (addition, subtraction, multiplication, division, power, square root) and transcendental functions (sin, cos, tan, log, exp, arcsin, arccos, etc.) and a few constants (pi, e) are provided.

A small reverse-polish calculator is provided to test the library.

There are three methods to install libcreal-ocaml-dev on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libcreal-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 libcreal-ocaml-dev using apt-get by running the following command:

sudo apt-get -y install libcreal-ocaml-dev

Install libcreal-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcreal-ocaml-dev

Install libcreal-ocaml-dev Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libcreal-ocaml-dev

How To Uninstall libcreal-ocaml-dev on Kali Linux

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

sudo apt-get remove libcreal-ocaml-dev

Uninstall libcreal-ocaml-dev And Its Dependencies

To uninstall libcreal-ocaml-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libcreal-ocaml-dev

Remove libcreal-ocaml-dev Configurations and Data

To remove libcreal-ocaml-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libcreal-ocaml-dev

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

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

sudo apt-get -y autoremove --purge libcreal-ocaml-dev

Dependencies

libcreal-ocaml-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libcreal-ocaml-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.