How To Install ocaml-newt on Fedora 36

In this tutorial we learn how to install ocaml-newt in Fedora 36. ocaml-newt is OCaml library for using newt text mode window system

Introduction

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

What is ocaml-newt

This is a set of OCaml bindings to newt. The newt windowing system is a terminal-based window and widget library designed for writing applications with a simple, but user-friendly, interface. While newt is not intended to provide the rich feature set advanced applications may require, it has proven to be flexible enough for a wide range of applications (most notably, the Red Hat installation process).

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

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

sudo dnf -y install ocaml-newt

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

sudo yum -y install ocaml-newt

How To Uninstall ocaml-newt on Fedora 36

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

sudo dnf remove ocaml-newt

ocaml-newt Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/99
/usr/lib/.build-id/99/e390c93dc0d4ece5d8f9163d24e27e1beb7f1f
/usr/lib64/ocaml/newt
/usr/lib64/ocaml/newt/META
/usr/lib64/ocaml/newt/mlnewt.cma
/usr/lib64/ocaml/newt/newt.cmi
/usr/lib64/ocaml/newt/newt_int.cmi
/usr/lib64/ocaml/stublibs/dllmlnewt.so
/usr/lib64/ocaml/stublibs/dllmlnewt.so.owner
/usr/share/doc/ocaml-newt
/usr/share/doc/ocaml-newt/COPYING.LIB

References

Summary

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