How To Install ocaml-bin-prot on Fedora 36

In this tutorial we learn how to install ocaml-bin-prot in Fedora 36. ocaml-bin-prot is Read and write OCaml values in a type-safe binary protocol

Introduction

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

What is ocaml-bin-prot

This library contains functionality for reading and writing OCaml values in a type-safe binary protocol. These functions are extremely efficient and provide users with a convenient and safe way of performing I/O on any extensionally defined data type. This means that functions, objects, and values whose type is bound through a polymorphic record field are not supported, but everything else is. As of now, there is no support for cyclic or shared values. Cyclic values will lead to non-termination whereas shared values, besides requiring significantly more space when encoded, may lead to a substantial increase in memory footprint when they are read back in.

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

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

sudo dnf -y install ocaml-bin-prot

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

sudo yum -y install ocaml-bin-prot

How To Uninstall ocaml-bin-prot on Fedora 36

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

sudo dnf remove ocaml-bin-prot

ocaml-bin-prot Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/2a4551c44babf9b6ce020948fcb1a1899966ca
/usr/lib/.build-id/40
/usr/lib/.build-id/40/cf56dbcb48ffa235cf13554db5b0d286ae3265
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/4905a633fe751e2517e4b5c424b1817e6cff40
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/fa3928a3f506835ee5c63557c94897ded99bbf
/usr/lib64/ocaml/bin_prot
/usr/lib64/ocaml/bin_prot/META
/usr/lib64/ocaml/bin_prot/bin_prot.cma
/usr/lib64/ocaml/bin_prot/bin_prot.cmi
/usr/lib64/ocaml/bin_prot/bin_prot.cmxs
/usr/lib64/ocaml/bin_prot/bin_prot__Binable.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Blob.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Common.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Md5.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Nat0.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Read.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Shape.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Size.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Std.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Type_class.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Utils.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Utils_intf.cmi
/usr/lib64/ocaml/bin_prot/bin_prot__Write.cmi
/usr/lib64/ocaml/bin_prot/runtime.js
/usr/lib64/ocaml/bin_prot/shape
/usr/lib64/ocaml/bin_prot/shape/bin_shape_lib.cma
/usr/lib64/ocaml/bin_prot/shape/bin_shape_lib.cmi
/usr/lib64/ocaml/bin_prot/shape/bin_shape_lib.cmxs
/usr/lib64/ocaml/bin_prot/shape/bin_shape_lib__Bin_shape.cmi
/usr/lib64/ocaml/bin_prot/shape/bin_shape_lib__Std.cmi
/usr/lib64/ocaml/bin_prot/xen
/usr/lib64/ocaml/bin_prot/xen/bin_prot_xen.cma
/usr/lib64/ocaml/bin_prot/xen/bin_prot_xen.cmi
/usr/lib64/ocaml/bin_prot/xen/bin_prot_xen.cmxs
/usr/lib64/ocaml/stublibs/dllbin_prot_stubs.so
/usr/share/doc/ocaml-bin-prot
/usr/share/doc/ocaml-bin-prot/CHANGES.md
/usr/share/doc/ocaml-bin-prot/README.md
/usr/share/licenses/ocaml-bin-prot
/usr/share/licenses/ocaml-bin-prot/COPYRIGHT.txt
/usr/share/licenses/ocaml-bin-prot/LICENSE-Tywith.txt
/usr/share/licenses/ocaml-bin-prot/LICENSE.md
/usr/share/licenses/ocaml-bin-prot/THIRD-PARTY.txt

References

Summary

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