How To Install libhttp-ocaml-dev on Kali Linux

In this tutorial we learn how to install libhttp-ocaml-dev on Kali Linux. libhttp-ocaml-dev is OCaml library for writing HTTP servers

Introduction

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

What is libhttp-ocaml-dev

libhttp-ocaml-dev is:

OCaml HTTP is a library for the Objective Caml programming language, used to build simple HTTP servers, largely inspired to Perl’s HTTP::Daemon module.

In order to implement an HTTP servers the programmer has to provide a daemon specification which contains, among other parameters, a callback function invoked by OCaml HTTP on well formed HTTP requests received. HTTP responses could be sent over an out_channel connected with client socket, accessible from the callback.

The library contains also facility functions that helps in creating well formed HTTP responses and a tiny HTTP client.

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

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

Install libhttp-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhttp-ocaml-dev

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

sudo aptitude -y install libhttp-ocaml-dev

How To Uninstall libhttp-ocaml-dev on Kali Linux

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

sudo apt-get remove libhttp-ocaml-dev

Uninstall libhttp-ocaml-dev And Its Dependencies

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

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

Remove libhttp-ocaml-dev Configurations and Data

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

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

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

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

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

Dependencies

libhttp-ocaml-dev have the following dependencies:

References

Summary

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