How To Install ocaml-expat on Fedora 36

In this tutorial we learn how to install ocaml-expat in Fedora 36. ocaml-expat is OCaml wrapper for the Expat XML parsing library

Introduction

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

What is ocaml-expat

An ocaml wrapper for the Expat XML parsing library. It allows you to write XML-Parsers using the SAX method. An XML document is parsed on the fly without needing to load the entire XML-Tree into memory.

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

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

sudo dnf -y install ocaml-expat

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

sudo yum -y install ocaml-expat

How To Uninstall ocaml-expat on Fedora 36

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

sudo dnf remove ocaml-expat

ocaml-expat Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/30696747beb820069942f6750d08d3300d7a0c
/usr/lib64/ocaml/expat
/usr/lib64/ocaml/expat/META
/usr/lib64/ocaml/expat/expat.cma
/usr/lib64/ocaml/expat/expat.cmi
/usr/lib64/ocaml/stublibs/dllmlexpat.so
/usr/lib64/ocaml/stublibs/dllmlexpat.so.owner
/usr/share/doc/ocaml-expat
/usr/share/doc/ocaml-expat/LICENCE
/usr/share/doc/ocaml-expat/README
/usr/share/doc/ocaml-expat/changelog

References

Summary

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