How To Install ocaml-obuild on AlmaLinux 8

In this tutorial we learn how to install ocaml-obuild in AlmaLinux 8. ocaml-obuild is Simple package build system for OCaml

Introduction

In this tutorial we learn how to install ocaml-obuild on AlmaLinux 8.

What is ocaml-obuild

A parallel, incremental and declarative build system for OCaml. The goal is to make a very simple build system for users and developers of OCaml libraries and programs. Obuild acts as a building black box build and with which sources; the build system will consistently build it. The design is based on Haskell’s Cabal and borrows most of the layout and way of working, adapting parts where necessary to fully support OCaml.

We can use yum or dnf to install ocaml-obuild on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-obuild.

Install ocaml-obuild 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-obuild using dnf by running the following command:

sudo dnf -y install ocaml-obuild

Install ocaml-obuild 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-obuild using yum by running the following command:

sudo yum -y install ocaml-obuild

How To Uninstall ocaml-obuild on AlmaLinux 8

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

sudo dnf remove ocaml-obuild

References

Summary

In this tutorial we learn how to install ocaml-obuild on AlmaLinux 8 using yum and dnf.