How To Install ocaml-obuild on Fedora 36

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

Introduction

In this tutorial we learn how to install ocaml-obuild on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-obuild.

Install ocaml-obuild on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove ocaml-obuild

ocaml-obuild Package Contents on Fedora 36

/usr/bin/obuild
/usr/bin/obuild-simple
/usr/lib/.build-id
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/ac189c61298b60800d78e5db57beffd960c603
/usr/lib/.build-id/55
/usr/lib/.build-id/55/b69418d8d0dbd61992796ad4e55f96d0395324
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).