How To Install ocaml-cppo on CentOS 7
Introduction
In this tutorial we learn how to install ocaml-cppo
on CentOS 7.
What is ocaml-cppo
Cppo is an equivalent of the C preprocessor targeted at the OCaml language and its variants. The main purpose of cppo is to provide a lightweight tool for simple macro substitution (#define) and file inclusion (#include) for the occasional case when this is useful in OCaml. Processing specific sections of files by calling external programs is also possible via #ext directives. The implementation of cppo relies on the standard library of OCaml and on the standard parsing tools Ocamllex and Ocamlyacc, which contribute to the robustness of cppo across OCaml versions.
We can use yum
or dnf
to install ocaml-cppo
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-cppo.
Install ocaml-cppo on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install ocaml-cppo
using yum
by running the following command:
sudo yum -y install ocaml-cppo
Install ocaml-cppo on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install ocaml-cppo
using dnf
by running the following command:
sudo dnf -y install ocaml-cppo
How To Uninstall ocaml-cppo on CentOS 7
To uninstall only the ocaml-cppo
package we can use the following command:
sudo dnf remove ocaml-cppo
References
Summary
In this tutorial we learn how to install ocaml-cppo
on CentOS 7 using yum
and dnf
.