How To Install ocaml-dune on AlmaLinux 8

In this tutorial we learn how to install ocaml-dune in AlmaLinux 8. ocaml-dune is A composable build system for OCaml

Introduction

In this tutorial we learn how to install ocaml-dune on AlmaLinux 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 AlmaLinux 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 AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ocaml-dune using dnf by running the following command:

sudo dnf -y install ocaml-dune

Install ocaml-dune on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ocaml-dune using yum by running the following command:

sudo yum -y install ocaml-dune

How To Uninstall ocaml-dune on AlmaLinux 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 AlmaLinux 8 using yum and dnf.