How To Install ocaml-res on Fedora 36

In this tutorial we learn how to install ocaml-res in Fedora 36. ocaml-res is OCaml library for resizing arrays and strings

Introduction

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

What is ocaml-res

This OCaml-library consists of a set of modules which implement automatically resizing (= reallocating) datastructures that consume a contiguous part of memory. This allows appending and removing of elements to/from arrays (both boxed and unboxed), strings (-> buffers), bit strings and weak arrays while still maintaining fast constant-time access to elements. There are also functors that allow the generation of similar modules which use different reallocation strategies.

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

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

sudo dnf -y install ocaml-res

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

sudo yum -y install ocaml-res

How To Uninstall ocaml-res on Fedora 36

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

sudo dnf remove ocaml-res

ocaml-res Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/ba0250edd99d3d170406e5fa2348b07e98e070
/usr/lib64/ocaml/res
/usr/lib64/ocaml/res/META
/usr/lib64/ocaml/res/nopres_impl.annot
/usr/lib64/ocaml/res/nopres_impl.cmi
/usr/lib64/ocaml/res/nopres_impl.cmt
/usr/lib64/ocaml/res/nopres_impl.cmx
/usr/lib64/ocaml/res/nopres_impl.ml
/usr/lib64/ocaml/res/nopres_intf.annot
/usr/lib64/ocaml/res/nopres_intf.cmi
/usr/lib64/ocaml/res/nopres_intf.cmt
/usr/lib64/ocaml/res/nopres_intf.cmx
/usr/lib64/ocaml/res/nopres_intf.ml
/usr/lib64/ocaml/res/pres_impl.annot
/usr/lib64/ocaml/res/pres_impl.cmi
/usr/lib64/ocaml/res/pres_impl.cmt
/usr/lib64/ocaml/res/pres_impl.cmx
/usr/lib64/ocaml/res/pres_impl.ml
/usr/lib64/ocaml/res/pres_intf.annot
/usr/lib64/ocaml/res/pres_intf.cmi
/usr/lib64/ocaml/res/pres_intf.cmt
/usr/lib64/ocaml/res/pres_intf.cmx
/usr/lib64/ocaml/res/pres_intf.ml
/usr/lib64/ocaml/res/res.annot
/usr/lib64/ocaml/res/res.cma
/usr/lib64/ocaml/res/res.cmi
/usr/lib64/ocaml/res/res.cmt
/usr/lib64/ocaml/res/res.cmti
/usr/lib64/ocaml/res/res.cmx
/usr/lib64/ocaml/res/res.cmxs
/usr/lib64/ocaml/res/strat.annot
/usr/lib64/ocaml/res/strat.cmi
/usr/lib64/ocaml/res/strat.cmt
/usr/lib64/ocaml/res/strat.cmx
/usr/lib64/ocaml/res/strat.ml
/usr/lib64/ocaml/res/weak_impl.annot
/usr/lib64/ocaml/res/weak_impl.cmi
/usr/lib64/ocaml/res/weak_impl.cmt
/usr/lib64/ocaml/res/weak_impl.cmx
/usr/lib64/ocaml/res/weak_impl.ml
/usr/lib64/ocaml/res/weak_intf.annot
/usr/lib64/ocaml/res/weak_intf.cmi
/usr/lib64/ocaml/res/weak_intf.cmt
/usr/lib64/ocaml/res/weak_intf.cmx
/usr/lib64/ocaml/res/weak_intf.ml
/usr/share/doc/ocaml-res
/usr/share/doc/ocaml-res/COPYING.txt

References

Summary

In this tutorial we learn how to install ocaml-res on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).