How To Install ocaml-dune on CentOS 8
Introduction
In this tutorial we learn how to install ocaml-dune on CentOS 8.
What is ocaml-dune
Dune is a build system designed for OCaml/Reason projects only. It focuses on providing the user with a consistent experience and takes care of most of the low-level details of OCaml compilation. All you have to do is provide a description of your project and Dune will do the rest. The scheme it implements is inspired from the one used inside Jane Street and adapted to the open source world. It has matured over a long time and is used daily by hundred of developers, which means that it is highly tested and productive.
We can use yum or dnf to install ocaml-dune on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-dune.
Install ocaml-dune on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install ocaml-dune using yum by running the following command:
sudo yum -y install ocaml-dune
Install ocaml-dune on CentOS 8 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install ocaml-dune using dnf by running the following command:
sudo dnf -y install ocaml-dune
How To Uninstall ocaml-dune on CentOS 8
To uninstall only the ocaml-dune package we can use the following command:
sudo dnf remove ocaml-dune
References
Summary
In this tutorial we learn how to install ocaml-dune on CentOS 8 using yum and dnf.