How To Install libre-ocaml-dev on Debian 9
Introduction
In this tutorial we learn how to install libre-ocaml-dev
on Debian 9.
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).
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 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 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 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 libre-ocaml-dev
using aptitude
by running the following command:
sudo aptitude -y install libre-ocaml-dev
How To Uninstall libre-ocaml-dev on Debian 9
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 Debian 9, 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 Debian 9 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 Debian 9 using different package management tools: apt
, apt-get
and aptitude
.