How To Install ocaml-result on Rocky Linux 8

In this tutorial we learn how to install ocaml-result on Rocky Linux 8. ocaml-result is Compat result type

Introduction

In this tutorial we learn how to install ocaml-result on Rocky Linux 8.

What is ocaml-result

Projects that want to use the new result type defined in OCaml >= 4.03 while staying compatible with older versions of OCaml should use the Result module defined in this library.

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

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

sudo dnf -y install ocaml-result

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

sudo yum -y install ocaml-result

How To Uninstall ocaml-result on Rocky Linux 8

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

sudo dnf remove ocaml-result

ocaml-result Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/313700c32d0ac113a358cbe6bd1efaebe630ab
/usr/lib64/ocaml/result
/usr/lib64/ocaml/result/META
/usr/lib64/ocaml/result/result.cma
/usr/lib64/ocaml/result/result.cmi
/usr/lib64/ocaml/result/result.cmo
/usr/lib64/ocaml/result/result.cmxs
/usr/lib64/ocaml/result/result.o
/usr/share/doc/ocaml-result
/usr/share/doc/ocaml-result/README.md
/usr/share/licenses/ocaml-result
/usr/share/licenses/ocaml-result/LICENSE

References

Summary

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