How To Install ocamlbuild on Kali Linux
Introduction
In this tutorial we learn how to install ocamlbuild on Kali Linux.
What is ocamlbuild
ocamlbuild is:
OCamlbuild is a generic build tool, which has built-in rules for building OCaml libraries and programs.
It was distributed as part of the OCaml distribution for OCaml versions between 3.10.0 and 4.02.3. Starting from OCaml 4.03, it is now released separately.
Its job is to determine the sequence of calls to the compiler with the right set of command-line flags needed to build your OCaml-centric software project.
It was designed as a generic build system (it is in fact not OCaml-specific), but also to be expressive enough to cover the specifics of the OCaml language that make writing good Makefiles difficult, such as the dreaded “units Foo and Bar make inconsistent assumptions about Baz” error.
There are three methods to install ocamlbuild 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 ocamlbuild Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install ocamlbuild using apt-get by running the following command:
sudo apt-get -y install ocamlbuildInstall ocamlbuild Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install ocamlbuild using apt by running the following command:
sudo apt -y install ocamlbuildInstall ocamlbuild 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 updateAfter updating apt database, We can install ocamlbuild using aptitude by running the following command:
sudo aptitude -y install ocamlbuildHow To Uninstall ocamlbuild on Kali Linux
To uninstall only the ocamlbuild package we can use the following command:
sudo apt-get remove ocamlbuildUninstall ocamlbuild And Its Dependencies
To uninstall ocamlbuild and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ocamlbuildRemove ocamlbuild Configurations and Data
To remove ocamlbuild configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ocamlbuildRemove ocamlbuild configuration, data, and all of its dependencies
We can use the following command to remove ocamlbuild configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ocamlbuildDependencies
ocamlbuild have the following dependencies:
References
Summary
In this tutorial we learn how to install ocamlbuild package on Kali Linux using different package management tools: apt, apt-get and aptitude.