How To Install ocaml-cppo on Rocky Linux 8
Introduction
In this tutorial we learn how to install ocaml-cppo
on Rocky Linux 8.
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-cppo.
Install ocaml-cppo 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-cppo
using dnf
by running the following command:
sudo dnf -y install ocaml-cppo
Install ocaml-cppo 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-cppo
using yum
by running the following command:
sudo yum -y install ocaml-cppo
How To Uninstall ocaml-cppo on Rocky Linux 8
To uninstall only the ocaml-cppo
package we can use the following command:
sudo dnf remove ocaml-cppo
ocaml-cppo Package Contents on Rocky Linux 8
/usr/bin/cppo
/usr/lib/.build-id
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/be90b6844bad6fb22eb7791b4bf786eb743dc7
/usr/share/doc/ocaml-cppo
/usr/share/doc/ocaml-cppo/Changes
/usr/share/doc/ocaml-cppo/README.md
/usr/share/licenses/ocaml-cppo
/usr/share/licenses/ocaml-cppo/LICENSE.md
References
Summary
In this tutorial we learn how to install ocaml-cppo
on Rocky Linux 8 using yum and dnf.