How To Install ocaml-camlp5 on Rocky Linux 8

In this tutorial we learn how to install ocaml-camlp5 on Rocky Linux 8. ocaml-camlp5 is Classical version of camlp4 OCaml preprocessor

Introduction

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

What is ocaml-camlp5

Camlp5 is a preprocessor-pretty-printer of OCaml. It is the continuation of the classical camlp4 with new features. OCaml 3.10 and above have an official camlp4 which is incompatible with classical (<= 3.09) versions. You can find that in the ocaml-camlp4 package.

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

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

sudo dnf -y install ocaml-camlp5

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

sudo yum -y install ocaml-camlp5

How To Uninstall ocaml-camlp5 on Rocky Linux 8

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

sudo dnf remove ocaml-camlp5

ocaml-camlp5 Package Contents on Rocky Linux 8

/usr/lib64/ocaml/camlp5
/usr/lib64/ocaml/camlp5/META
/usr/lib64/ocaml/camlp5/ast2pt.cmi
/usr/lib64/ocaml/camlp5/camlp5.cma
/usr/lib64/ocaml/camlp5/camlp5_top.cma
/usr/lib64/ocaml/camlp5/camlp5o.cma
/usr/lib64/ocaml/camlp5/camlp5r.cma
/usr/lib64/ocaml/camlp5/camlp5sch.cma
/usr/lib64/ocaml/camlp5/diff.cmi
/usr/lib64/ocaml/camlp5/eprinter.cmi
/usr/lib64/ocaml/camlp5/extfold.cmi
/usr/lib64/ocaml/camlp5/extfun.cmi
/usr/lib64/ocaml/camlp5/fstream.cmi
/usr/lib64/ocaml/camlp5/gramext.cmi
/usr/lib64/ocaml/camlp5/gramlib.cma
/usr/lib64/ocaml/camlp5/grammar.cmi
/usr/lib64/ocaml/camlp5/lib.sml
/usr/lib64/ocaml/camlp5/mLast.cmi
/usr/lib64/ocaml/camlp5/ocpp.cmo
/usr/lib64/ocaml/camlp5/odyl.cma
/usr/lib64/ocaml/camlp5/odyl.cmo
/usr/lib64/ocaml/camlp5/odyl.o
/usr/lib64/ocaml/camlp5/pa_extend.cmi
/usr/lib64/ocaml/camlp5/pa_extend.cmo
/usr/lib64/ocaml/camlp5/pa_extend.o
/usr/lib64/ocaml/camlp5/pa_extend_m.cmo
/usr/lib64/ocaml/camlp5/pa_extend_m.o
/usr/lib64/ocaml/camlp5/pa_extfold.cmo
/usr/lib64/ocaml/camlp5/pa_extfold.o
/usr/lib64/ocaml/camlp5/pa_extfun.cmo
/usr/lib64/ocaml/camlp5/pa_extfun.o
/usr/lib64/ocaml/camlp5/pa_extprint.cmo
/usr/lib64/ocaml/camlp5/pa_extprint.o
/usr/lib64/ocaml/camlp5/pa_fstream.cmo
/usr/lib64/ocaml/camlp5/pa_fstream.o
/usr/lib64/ocaml/camlp5/pa_lefteval.cmo
/usr/lib64/ocaml/camlp5/pa_lefteval.o
/usr/lib64/ocaml/camlp5/pa_lexer.cmo
/usr/lib64/ocaml/camlp5/pa_lexer.o
/usr/lib64/ocaml/camlp5/pa_lisp.cmo
/usr/lib64/ocaml/camlp5/pa_lisp.o
/usr/lib64/ocaml/camlp5/pa_macro.cmi
/usr/lib64/ocaml/camlp5/pa_macro.cmo
/usr/lib64/ocaml/camlp5/pa_macro.o
/usr/lib64/ocaml/camlp5/pa_mkast.cmo
/usr/lib64/ocaml/camlp5/pa_mkast.o
/usr/lib64/ocaml/camlp5/pa_mktest.cmo
/usr/lib64/ocaml/camlp5/pa_mktest.o
/usr/lib64/ocaml/camlp5/pa_o.cmo
/usr/lib64/ocaml/camlp5/pa_o.o
/usr/lib64/ocaml/camlp5/pa_o_fast.o
/usr/lib64/ocaml/camlp5/pa_oop.cmo
/usr/lib64/ocaml/camlp5/pa_oop.o
/usr/lib64/ocaml/camlp5/pa_op.cmo
/usr/lib64/ocaml/camlp5/pa_op.o
/usr/lib64/ocaml/camlp5/pa_pprintf.cmo
/usr/lib64/ocaml/camlp5/pa_pprintf.o
/usr/lib64/ocaml/camlp5/pa_pragma.cmo
/usr/lib64/ocaml/camlp5/pa_pragma.o
/usr/lib64/ocaml/camlp5/pa_r.cmo
/usr/lib64/ocaml/camlp5/pa_r.o
/usr/lib64/ocaml/camlp5/pa_reloc.cmo
/usr/lib64/ocaml/camlp5/pa_reloc.o
/usr/lib64/ocaml/camlp5/pa_rp.cmo
/usr/lib64/ocaml/camlp5/pa_rp.o
/usr/lib64/ocaml/camlp5/pa_scheme.cmo
/usr/lib64/ocaml/camlp5/pa_scheme.o
/usr/lib64/ocaml/camlp5/pa_sml.cmo
/usr/lib64/ocaml/camlp5/pa_sml.o
/usr/lib64/ocaml/camlp5/pcaml.cmi
/usr/lib64/ocaml/camlp5/plexer.cmi
/usr/lib64/ocaml/camlp5/plexing.cmi
/usr/lib64/ocaml/camlp5/ploc.cmi
/usr/lib64/ocaml/camlp5/pprintf.cmi
/usr/lib64/ocaml/camlp5/pr_depend.cmo
/usr/lib64/ocaml/camlp5/pr_depend.o
/usr/lib64/ocaml/camlp5/pr_dump.cmo
/usr/lib64/ocaml/camlp5/pr_dump.o
/usr/lib64/ocaml/camlp5/pr_extend.cmo
/usr/lib64/ocaml/camlp5/pr_extend.o
/usr/lib64/ocaml/camlp5/pr_extfun.cmo
/usr/lib64/ocaml/camlp5/pr_extfun.o
/usr/lib64/ocaml/camlp5/pr_extprint.cmo
/usr/lib64/ocaml/camlp5/pr_extprint.o
/usr/lib64/ocaml/camlp5/pr_null.cmo
/usr/lib64/ocaml/camlp5/pr_null.o
/usr/lib64/ocaml/camlp5/pr_o.cmo
/usr/lib64/ocaml/camlp5/pr_o.o
/usr/lib64/ocaml/camlp5/pr_op.cmo
/usr/lib64/ocaml/camlp5/pr_op.o
/usr/lib64/ocaml/camlp5/pr_r.cmo
/usr/lib64/ocaml/camlp5/pr_r.o
/usr/lib64/ocaml/camlp5/pr_ro.cmo
/usr/lib64/ocaml/camlp5/pr_ro.o
/usr/lib64/ocaml/camlp5/pr_rp.cmo
/usr/lib64/ocaml/camlp5/pr_rp.o
/usr/lib64/ocaml/camlp5/pr_scheme.cmo
/usr/lib64/ocaml/camlp5/pr_scheme.o
/usr/lib64/ocaml/camlp5/pr_schemep.cmo
/usr/lib64/ocaml/camlp5/pr_schemep.o
/usr/lib64/ocaml/camlp5/pretty.cmi
/usr/lib64/ocaml/camlp5/prtools.cmi
/usr/lib64/ocaml/camlp5/q_MLast.cmo
/usr/lib64/ocaml/camlp5/q_MLast.o
/usr/lib64/ocaml/camlp5/q_ast.cmo
/usr/lib64/ocaml/camlp5/q_ast.o
/usr/lib64/ocaml/camlp5/q_phony.cmo
/usr/lib64/ocaml/camlp5/q_phony.o
/usr/lib64/ocaml/camlp5/quotation.cmi
/usr/lib64/ocaml/camlp5/reloc.cmi
/usr/lib64/ocaml/camlp5/stdpp.cmi
/usr/lib64/ocaml/camlp5/token.cmi
/usr/lib64/ocaml/camlp5/versdep.cmi
/usr/share/doc/ocaml-camlp5
/usr/share/doc/ocaml-camlp5/README
/usr/share/licenses/ocaml-camlp5
/usr/share/licenses/ocaml-camlp5/LICENSE

References

Summary

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