How To Install ocaml-obuild on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install ocaml-obuild on Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove ocaml-obuild

ocaml-obuild Package Contents on Rocky Linux 8

/usr/bin/obuild
/usr/bin/obuild-simple
/usr/lib/.build-id
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/f007183bead4c8bc3715d4d9ecfad87a394e15
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/6fcbfefc90e56f7e37b71cafe009bb666fc4cc
/usr/share/doc/ocaml-obuild
/usr/share/doc/ocaml-obuild/DESIGN.md
/usr/share/doc/ocaml-obuild/OBUILD_SPEC.md
/usr/share/doc/ocaml-obuild/README.md
/usr/share/licenses/ocaml-obuild
/usr/share/licenses/ocaml-obuild/LICENSE
/usr/share/man/man1/obuild-simple.1.gz
/usr/share/man/man1/obuild.1.gz

References

Summary

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