How To Install ocaml-cppo on Fedora 36
Introduction
In this tutorial we learn how to install ocaml-cppo
on Fedora 36.
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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-cppo.
Install ocaml-cppo on Fedora 36 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 Fedora 36 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 Fedora 36
To uninstall only the ocaml-cppo
package we can use the following command:
sudo dnf remove ocaml-cppo
ocaml-cppo Package Contents on Fedora 36
/usr/bin/cppo
/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/8773b3daea53d2ed88ea2075230c10d54e986a
/usr/lib64/ocaml/cppo
/usr/lib64/ocaml/cppo/META
/usr/lib64/ocaml/cppo/dune-package
/usr/lib64/ocaml/cppo/opam
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).