How To Install libre-ocaml-dev on Kali Linux

In this tutorial we learn how to install libre-ocaml-dev on Kali Linux. libre-ocaml-dev is regular expression library for OCaml

Introduction

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

What is libre-ocaml-dev

libre-ocaml-dev is:

RE is regular expression library for OCaml. The following styles of regular expressions are supported:

  • Perl-style regular expressions (module Re.Perl);
  • Posix extended regular expressions (module Re.Posix);
  • Emacs-style regular expressions (module Re.Emacs);
  • Shell-style file globbing (module Re.Glob);
  • Compatibility layer for OCaml’s built-in Str module (module Re.Str).

It is also possible to build regular expressions by combining simpler regular expressions (module Re)

This package contains the development modules you need to use RE in your programs.

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

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

Install libre-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libre-ocaml-dev

Install libre-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 libre-ocaml-dev using aptitude by running the following command:

sudo aptitude -y install libre-ocaml-dev

How To Uninstall libre-ocaml-dev on Kali Linux

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

sudo apt-get remove libre-ocaml-dev

Uninstall libre-ocaml-dev And Its Dependencies

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

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

Remove libre-ocaml-dev Configurations and Data

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

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

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

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

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

Dependencies

libre-ocaml-dev have the following dependencies:

References

Summary

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