How To Install ocaml-camlp4.x86_64 on Amazon Linux 2

In this tutorial we learn how to install ocaml-camlp4.x86_64 in Amazon Linux 2. ocaml-camlp4.x86_64 is Pre-Processor-Pretty-Printer for OCaml

Introduction

In this tutorial we learn how to install ocaml-camlp4.x86_64 on Amazon Linux 2.

What is ocaml-camlp4.x86_64

Camlp4 is a Pre-Processor-Pretty-Printer for OCaml, parsing a source file and printing some result on standard output. This package contains the runtime files.

We can use yum to install ocaml-camlp4.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-camlp4.x86_64.

Install ocaml-camlp4.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install ocaml-camlp4.x86_64

How To Uninstall ocaml-camlp4.x86_64 on Amazon Linux 2

To uninstall only the ocaml-camlp4.x86_64 package we can use the following command:

sudo yum remove ocaml-camlp4.x86_64

ocaml-camlp4.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/ocaml/camlp4
/usr/lib64/ocaml/camlp4/Camlp4.cmi
/usr/lib64/ocaml/camlp4/Camlp4Bin.cmi
/usr/lib64/ocaml/camlp4/Camlp4Bin.cmo
/usr/lib64/ocaml/camlp4/Camlp4Filters
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4AstLifter.cmi
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4AstLifter.cmo
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4ExceptionTracer.cmi
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4ExceptionTracer.cmo
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4FoldGenerator.cmi
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4FoldGenerator.cmo
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4LocationStripper.cmi
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4LocationStripper.cmo
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4MapGenerator.cmi
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4MapGenerator.cmo
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4MetaGenerator.cmi
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4MetaGenerator.cmo
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4Profiler.cmi
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4Profiler.cmo
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4TrashRemover.cmi
/usr/lib64/ocaml/camlp4/Camlp4Filters/Camlp4TrashRemover.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4AstLoader.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4AstLoader.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4DebugParser.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4DebugParser.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4GrammarParser.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4ListComprehension.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4MacroParser.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4MacroParser.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlOriginalQuotationExpander.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlOriginalQuotationExpander.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlParser.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlParser.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlReloadedParser.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlReloadedParser.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlRevisedQuotationExpander.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4OCamlRevisedQuotationExpander.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmi
/usr/lib64/ocaml/camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo
/usr/lib64/ocaml/camlp4/Camlp4Printers
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4AstDumper.cmi
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4AstDumper.cmo
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4AutoPrinter.cmi
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4AutoPrinter.cmo
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4NullDumper.cmi
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4NullDumper.cmo
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4OCamlAstDumper.cmi
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4OCamlAstDumper.cmo
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4OCamlPrinter.cmi
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4OCamlPrinter.cmo
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4OCamlRevisedPrinter.cmi
/usr/lib64/ocaml/camlp4/Camlp4Printers/Camlp4OCamlRevisedPrinter.cmo
/usr/lib64/ocaml/camlp4/Camlp4Top
/usr/lib64/ocaml/camlp4/Camlp4Top.cmi
/usr/lib64/ocaml/camlp4/Camlp4Top.cmo
/usr/lib64/ocaml/camlp4/Camlp4Top/Rprint.cmi
/usr/lib64/ocaml/camlp4/Camlp4Top/Rprint.cmo
/usr/lib64/ocaml/camlp4/Camlp4Top/Top.cmi
/usr/lib64/ocaml/camlp4/Camlp4Top/Top.cmo
/usr/lib64/ocaml/camlp4/Camlp4_config.cmi
/usr/lib64/ocaml/camlp4/camlp4fulllib.cma
/usr/lib64/ocaml/camlp4/camlp4lib.cma
/usr/lib64/ocaml/camlp4/camlp4o.cma
/usr/lib64/ocaml/camlp4/camlp4of.cma
/usr/lib64/ocaml/camlp4/camlp4oof.cma
/usr/lib64/ocaml/camlp4/camlp4orf.cma
/usr/lib64/ocaml/camlp4/camlp4prof.cmi
/usr/lib64/ocaml/camlp4/camlp4prof.cmo
/usr/lib64/ocaml/camlp4/camlp4r.cma
/usr/lib64/ocaml/camlp4/camlp4rf.cma
/usr/share/doc/ocaml-camlp4-4.05.0
/usr/share/doc/ocaml-camlp4-4.05.0/LICENSE
/usr/share/doc/ocaml-camlp4-4.05.0/README.md

References

Summary

In this tutorial we learn how to install ocaml-camlp4.x86_64 on Amazon Linux 2 using yum.