How To Install ocaml-ancient on Fedora 36

In this tutorial we learn how to install ocaml-ancient in Fedora 36. ocaml-ancient is OCaml library for large memory structures and sharing

Introduction

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

What is ocaml-ancient

Ancient is an OCaml module that allows you to use in-memory data structures which are larger than available memory and so are kept in swap. If you try this in normal OCaml code, you’ll find that the machine quickly descends into thrashing as the garbage collector repeatedly iterates over swapped memory structures. This module lets you break that limitation. Of course the module doesn’t work by magic. If your program tries to access these large structures, they still need to be swapped back in, but it is suitable for large, sparsely accessed structures. Secondly, this module allows you to share those structures between processes. In this mode, the structures are backed by a disk file, and any process that has read/write access to that disk file can map that file in and see the structures. Developers should read the README.txt file included with the ocaml-ancient-devel package carefully.

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

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

sudo dnf -y install ocaml-ancient

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

sudo yum -y install ocaml-ancient

How To Uninstall ocaml-ancient on Fedora 36

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

sudo dnf remove ocaml-ancient

ocaml-ancient Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/d59b0abab24ed6c0b667f78abdcdb00d70538d
/usr/lib64/ocaml/ancient
/usr/lib64/ocaml/ancient/META
/usr/lib64/ocaml/ancient/ancient.cma
/usr/lib64/ocaml/ancient/ancient.cmi
/usr/lib64/ocaml/stublibs/dllancient.so
/usr/lib64/ocaml/stublibs/dllancient.so.owner
/usr/share/doc/ocaml-ancient
/usr/share/doc/ocaml-ancient/COPYING.LIB

References

Summary

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