How To Install libxmlm-ocaml-dev on Debian 9

In this tutorial we learn how to install libxmlm-ocaml-dev on Debian 9. libxmlm-ocaml-dev is OCaml xml manipulation module

Introduction

In this tutorial we learn how to install libxmlm-ocaml-dev on Debian 9.

What is libxmlm-ocaml-dev

libxmlm-ocaml-dev is:

Xmlm allows the OCaml programmer to manipulate xml data. Its complexity is half-way between the easy xml-light module and a full parsing of xml data.

It is also very simple to updgrade existing code using xml-light in order to use xmlm.

This package contains all the development stuff you need to develop OCaml programs which use xmlm.

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

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

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

Install libxmlm-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libxmlm-ocaml-dev

Install libxmlm-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libxmlm-ocaml-dev

How To Uninstall libxmlm-ocaml-dev on Debian 9

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

sudo apt-get remove libxmlm-ocaml-dev

Uninstall libxmlm-ocaml-dev And Its Dependencies

To uninstall libxmlm-ocaml-dev and its dependencies that are no longer needed by Debian 9, we can use the command below:

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

Remove libxmlm-ocaml-dev Configurations and Data

To remove libxmlm-ocaml-dev configuration and data from Debian 9 we can use the following command:

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

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

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

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

Dependencies

libxmlm-ocaml-dev have the following dependencies:

References

Summary

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