How To Install ocaml-ounit on Fedora 36

In this tutorial we learn how to install ocaml-ounit in Fedora 36. ocaml-ounit is Unit test framework for OCaml

Introduction

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

What is ocaml-ounit

OUnit is a unit test framework for OCaml. It allows one to easily create unit-tests for OCaml code. It is loosely based on HUnit, a unit testing framework for Haskell. It is similar to JUnit, and other xUnit testing frameworks.

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

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

sudo dnf -y install ocaml-ounit

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

sudo yum -y install ocaml-ounit

How To Uninstall ocaml-ounit on Fedora 36

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

sudo dnf remove ocaml-ounit

ocaml-ounit Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/41b1de2a78da1d02847c7d1c84934658f9c0b2
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/32fe53bb740991e1e68a9f1aabc2b9e65691cf
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/a472fa5af0bae73689417de7b4c27815fe4bc6
/usr/lib64/ocaml/ounit
/usr/lib64/ocaml/ounit/META
/usr/lib64/ocaml/ounit2
/usr/lib64/ocaml/ounit2/META
/usr/lib64/ocaml/ounit2/advanced
/usr/lib64/ocaml/ounit2/advanced/oUnitAdvanced.cma
/usr/lib64/ocaml/ounit2/advanced/oUnitAdvanced.cmxs
/usr/lib64/ocaml/ounit2/advanced/oUnitAssert.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitBracket.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitCache.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitCheckEnv.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitChooser.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitConf.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitCore.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitDiff.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitLogger.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitLoggerCI.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitLoggerHTML.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitLoggerHTMLData.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitLoggerJUnit.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitLoggerStd.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitPlugin.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitPropList.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitResultSummary.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitRunner.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitRunnerProcesses.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitShared.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitState.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitTest.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitTestData.cmi
/usr/lib64/ocaml/ounit2/advanced/oUnitUtils.cmi
/usr/lib64/ocaml/ounit2/oUnit.cma
/usr/lib64/ocaml/ounit2/oUnit.cmi
/usr/lib64/ocaml/ounit2/oUnit.cmxs
/usr/lib64/ocaml/ounit2/oUnit2.cmi
/usr/lib64/ocaml/ounit2/threads
/usr/lib64/ocaml/ounit2/threads/.private
/usr/lib64/ocaml/ounit2/threads/.private/oUnitThreads__OUnitRunnerThreads.cmi
/usr/lib64/ocaml/ounit2/threads/.private/oUnitThreads__OUnitRunnerThreads.cmt
/usr/lib64/ocaml/ounit2/threads/oUnitThreads.cma
/usr/lib64/ocaml/ounit2/threads/oUnitThreads.cmi
/usr/lib64/ocaml/ounit2/threads/oUnitThreads.cmxs
/usr/lib64/ocaml/ounit2/threads/oUnitThreads__.cmi
/usr/share/doc/ocaml-ounit
/usr/share/doc/ocaml-ounit/CHANGES.md
/usr/share/doc/ocaml-ounit/README.md
/usr/share/licenses/ocaml-ounit
/usr/share/licenses/ocaml-ounit/LICENSE.txt

References

Summary

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