How To Install ocaml-runtime on Rocky Linux 8

In this tutorial we learn how to install ocaml-runtime on Rocky Linux 8. ocaml-runtime is OCaml runtime environment

Introduction

In this tutorial we learn how to install ocaml-runtime on Rocky Linux 8.

What is ocaml-runtime

OCaml is a high-level, strongly-typed, functional and object-oriented programming language from the ML family of languages. This package contains the runtime environment needed to run OCaml bytecode.

We can use yum or dnf to install ocaml-runtime on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-runtime.

Install ocaml-runtime on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ocaml-runtime using dnf by running the following command:

sudo dnf -y install ocaml-runtime

Install ocaml-runtime on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ocaml-runtime using yum by running the following command:

sudo yum -y install ocaml-runtime

How To Uninstall ocaml-runtime on Rocky Linux 8

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

sudo dnf remove ocaml-runtime

ocaml-runtime Package Contents on Rocky Linux 8

/usr/bin/ocamlrun
/usr/bin/ocamlrund
/usr/bin/ocamlruni
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/1856938506edb56dccb4d05bfe59b5bb587ea0
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/5c4343b644d2f1ce67c0988c79d9baf21f8cdd
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/194765540329023392cfc0b41bfd30a29e5c1f
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/9a2966f5e7996e29bc674f4b4eb65ee4e6e883
/usr/lib/.build-id/43
/usr/lib/.build-id/43/d5fa89cee77fed7f8b998cdfaf43ab790081fe
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/ae7b06672650014172b066ae4bd8ae92db5f5e
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/07cba7d6aacafa359db0b1c7208ba431f38052
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/775ddb0ddc93a155256b2fb3962de59aead57e
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/0907b2ecd34c950162fb1c619c5fec20043731
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/49f2ca88acc0e40b95c3c2221f307f9a66e19f
/usr/lib64/ocaml
/usr/lib64/ocaml/VERSION
/usr/lib64/ocaml/bigarray.cma
/usr/lib64/ocaml/bigarray.cmi
/usr/lib64/ocaml/camlinternalFormat.cmi
/usr/lib64/ocaml/camlinternalFormatBasics.cmi
/usr/lib64/ocaml/camlinternalLazy.cmi
/usr/lib64/ocaml/camlinternalMod.cmi
/usr/lib64/ocaml/camlinternalOO.cmi
/usr/lib64/ocaml/dynlink.cma
/usr/lib64/ocaml/dynlink.cmi
/usr/lib64/ocaml/fedora-ocaml-release
/usr/lib64/ocaml/graphics.cma
/usr/lib64/ocaml/graphics.cmi
/usr/lib64/ocaml/profiling.cmi
/usr/lib64/ocaml/profiling.cmo
/usr/lib64/ocaml/raw_spacetime_lib.cma
/usr/lib64/ocaml/raw_spacetime_lib.cmi
/usr/lib64/ocaml/std_exit.cmi
/usr/lib64/ocaml/std_exit.cmo
/usr/lib64/ocaml/stdlib.cma
/usr/lib64/ocaml/stdlib.cmi
/usr/lib64/ocaml/stdlib__arg.cmi
/usr/lib64/ocaml/stdlib__array.cmi
/usr/lib64/ocaml/stdlib__arrayLabels.cmi
/usr/lib64/ocaml/stdlib__bigarray.cmi
/usr/lib64/ocaml/stdlib__buffer.cmi
/usr/lib64/ocaml/stdlib__bytes.cmi
/usr/lib64/ocaml/stdlib__bytesLabels.cmi
/usr/lib64/ocaml/stdlib__callback.cmi
/usr/lib64/ocaml/stdlib__char.cmi
/usr/lib64/ocaml/stdlib__complex.cmi
/usr/lib64/ocaml/stdlib__digest.cmi
/usr/lib64/ocaml/stdlib__ephemeron.cmi
/usr/lib64/ocaml/stdlib__filename.cmi
/usr/lib64/ocaml/stdlib__float.cmi
/usr/lib64/ocaml/stdlib__format.cmi
/usr/lib64/ocaml/stdlib__gc.cmi
/usr/lib64/ocaml/stdlib__genlex.cmi
/usr/lib64/ocaml/stdlib__hashtbl.cmi
/usr/lib64/ocaml/stdlib__int32.cmi
/usr/lib64/ocaml/stdlib__int64.cmi
/usr/lib64/ocaml/stdlib__lazy.cmi
/usr/lib64/ocaml/stdlib__lexing.cmi
/usr/lib64/ocaml/stdlib__list.cmi
/usr/lib64/ocaml/stdlib__listLabels.cmi
/usr/lib64/ocaml/stdlib__map.cmi
/usr/lib64/ocaml/stdlib__marshal.cmi
/usr/lib64/ocaml/stdlib__moreLabels.cmi
/usr/lib64/ocaml/stdlib__nativeint.cmi
/usr/lib64/ocaml/stdlib__obj.cmi
/usr/lib64/ocaml/stdlib__oo.cmi
/usr/lib64/ocaml/stdlib__parsing.cmi
/usr/lib64/ocaml/stdlib__printexc.cmi
/usr/lib64/ocaml/stdlib__printf.cmi
/usr/lib64/ocaml/stdlib__queue.cmi
/usr/lib64/ocaml/stdlib__random.cmi
/usr/lib64/ocaml/stdlib__scanf.cmi
/usr/lib64/ocaml/stdlib__seq.cmi
/usr/lib64/ocaml/stdlib__set.cmi
/usr/lib64/ocaml/stdlib__sort.cmi
/usr/lib64/ocaml/stdlib__spacetime.cmi
/usr/lib64/ocaml/stdlib__stack.cmi
/usr/lib64/ocaml/stdlib__stdLabels.cmi
/usr/lib64/ocaml/stdlib__stream.cmi
/usr/lib64/ocaml/stdlib__string.cmi
/usr/lib64/ocaml/stdlib__stringLabels.cmi
/usr/lib64/ocaml/stdlib__sys.cmi
/usr/lib64/ocaml/stdlib__uchar.cmi
/usr/lib64/ocaml/stdlib__weak.cmi
/usr/lib64/ocaml/str.cma
/usr/lib64/ocaml/str.cmi
/usr/lib64/ocaml/stublibs
/usr/lib64/ocaml/stublibs/dllbigarray.so
/usr/lib64/ocaml/stublibs/dllcamlstr.so
/usr/lib64/ocaml/stublibs/dllgraphics.so
/usr/lib64/ocaml/stublibs/dllraw_spacetime_lib.so
/usr/lib64/ocaml/stublibs/dllthreads.so
/usr/lib64/ocaml/stublibs/dllunix.so
/usr/lib64/ocaml/stublibs/dllvmthreads.so
/usr/lib64/ocaml/target_camlheaderd
/usr/lib64/ocaml/target_camlheaderi
/usr/lib64/ocaml/threads
/usr/lib64/ocaml/threads/condition.cmi
/usr/lib64/ocaml/threads/event.cmi
/usr/lib64/ocaml/threads/mutex.cmi
/usr/lib64/ocaml/threads/thread.cmi
/usr/lib64/ocaml/threads/threadUnix.cmi
/usr/lib64/ocaml/threads/threads.cma
/usr/lib64/ocaml/topdirs.cmi
/usr/lib64/ocaml/unix.cma
/usr/lib64/ocaml/unix.cmi
/usr/lib64/ocaml/unixLabels.cmi
/usr/lib64/ocaml/vmthreads
/usr/lib64/ocaml/vmthreads/condition.cmi
/usr/lib64/ocaml/vmthreads/event.cmi
/usr/lib64/ocaml/vmthreads/mutex.cmi
/usr/lib64/ocaml/vmthreads/stdlib.cma
/usr/lib64/ocaml/vmthreads/thread.cmi
/usr/lib64/ocaml/vmthreads/threadUnix.cmi
/usr/lib64/ocaml/vmthreads/threads.cma
/usr/lib64/ocaml/vmthreads/unix.cma
/usr/share/doc/ocaml-runtime
/usr/share/doc/ocaml-runtime/Changes
/usr/share/doc/ocaml-runtime/LICENSE
/usr/share/doc/ocaml-runtime/README.adoc

References

Summary

In this tutorial we learn how to install ocaml-runtime on Rocky Linux 8 using yum and dnf.