How To Install ocaml-merlin on Fedora 36

In this tutorial we learn how to install ocaml-merlin in Fedora 36. ocaml-merlin is Context sensitive completion for OCaml

Introduction

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

What is ocaml-merlin

Merlin is an assistant for editing OCaml code. It aims to provide the features available in modern IDEs source browsing and much more. You should also install a package that integrates with your editor of choice, such as emacs-merlin or vim-merlin.

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

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

sudo dnf -y install ocaml-merlin

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

sudo yum -y install ocaml-merlin

How To Uninstall ocaml-merlin on Fedora 36

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

sudo dnf remove ocaml-merlin

ocaml-merlin Package Contents on Fedora 36

/usr/bin/ocamlmerlin
/usr/bin/ocamlmerlin-server
/usr/lib/.build-id
/usr/lib/.build-id/38
/usr/lib/.build-id/38/d75c1cbc947c46793922204488880294fd505e
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/3675e66a66474559cdaa91b2e2d3244b782035
/usr/lib64/ocaml/merlin
/usr/lib64/ocaml/merlin/META
/usr/lib64/ocaml/merlin/dune-package
/usr/lib64/ocaml/merlin/opam
/usr/share/doc/ocaml-merlin
/usr/share/doc/ocaml-merlin/CHANGES.md
/usr/share/doc/ocaml-merlin/README.md
/usr/share/doc/ocaml-merlin/featuremap.tines
/usr/share/doc/ocaml-merlin/featuremap.txt
/usr/share/licenses/ocaml-merlin
/usr/share/licenses/ocaml-merlin/LICENSE

References

Summary

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