How To Install ocaml-ppx-compare on Fedora 36

In this tutorial we learn how to install ocaml-ppx-compare in Fedora 36. ocaml-ppx-compare is Generate comparison functions from types

Introduction

In this tutorial we learn how to install ocaml-ppx-compare on Fedora 36.

What is ocaml-ppx-compare

Ppx_compare is a ppx rewriter that derives comparison and equality functions from type representations. The scaffolded functions are usually much faster than OCaml’s Pervasives.compare and Pervasives.(=). Scaffolding functions also give more flexibility by allowing them to be overridden for a specific type, and more safety by making sure that only comparable values are compared.

We can use yum or dnf to install ocaml-ppx-compare on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-ppx-compare.

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

sudo dnf -y install ocaml-ppx-compare

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

sudo yum -y install ocaml-ppx-compare

How To Uninstall ocaml-ppx-compare on Fedora 36

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

sudo dnf remove ocaml-ppx-compare

ocaml-ppx-compare Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/920cab7eeb3f326cbfe7293b9d57899cca03e7
/usr/lib/.build-id/49
/usr/lib/.build-id/49/5a1239139fb6738878ad75c80088fb8dc1089f
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/a7f6cd738dc6d1f04dce216585abc81df76f30
/usr/lib/ocaml/ppx_compare
/usr/lib/ocaml/ppx_compare/META
/usr/lib/ocaml/ppx_compare/expander
/usr/lib/ocaml/ppx_compare/expander/ppx_compare_expander.cma
/usr/lib/ocaml/ppx_compare/expander/ppx_compare_expander.cmi
/usr/lib/ocaml/ppx_compare/expander/ppx_compare_expander.cmxs
/usr/lib/ocaml/ppx_compare/expander/ppx_compare_expander__.cmi
/usr/lib/ocaml/ppx_compare/expander/ppx_compare_expander__Ppx_compare_expander_intf.cmi
/usr/lib/ocaml/ppx_compare/ppx_compare.cma
/usr/lib/ocaml/ppx_compare/ppx_compare.cmi
/usr/lib/ocaml/ppx_compare/ppx_compare.cmxs
/usr/lib/ocaml/ppx_compare/runtime-lib
/usr/lib/ocaml/ppx_compare/runtime-lib/ppx_compare_lib.cma
/usr/lib/ocaml/ppx_compare/runtime-lib/ppx_compare_lib.cmi
/usr/lib/ocaml/ppx_compare/runtime-lib/ppx_compare_lib.cmxs
/usr/share/doc/ocaml-ppx-compare
/usr/share/doc/ocaml-ppx-compare/CHANGES.md
/usr/share/doc/ocaml-ppx-compare/README.md
/usr/share/licenses/ocaml-ppx-compare
/usr/share/licenses/ocaml-ppx-compare/LICENSE.md

References

Summary

In this tutorial we learn how to install ocaml-ppx-compare on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


title: “How To Install ocaml-ppx-compare on Fedora 36” linkTitle: “ocaml-ppx-compare” type: “docs” description: “In this tutorial we learn how to install ocaml-ppx-compare in Fedora 36. ocaml-ppx-compare is Generate comparison functions from types” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/ocaml-ppx-compare-featured.png

Introduction

In this tutorial we learn how to install ocaml-ppx-compare on Fedora 36.

What is ocaml-ppx-compare

Ppx_compare is a ppx rewriter that derives comparison and equality functions from type representations. The scaffolded functions are usually much faster than OCaml’s Pervasives.compare and Pervasives.(=). Scaffolding functions also give more flexibility by allowing them to be overridden for a specific type, and more safety by making sure that only comparable values are compared.

We can use yum or dnf to install ocaml-ppx-compare on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-ppx-compare.

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

sudo dnf -y install ocaml-ppx-compare

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

sudo yum -y install ocaml-ppx-compare

How To Uninstall ocaml-ppx-compare on Fedora 36

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

sudo dnf remove ocaml-ppx-compare

ocaml-ppx-compare Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/17
/usr/lib/.build-id/17/49fe17700a2ca8a71594d18c1d27c5aef5d660
/usr/lib/.build-id/41
/usr/lib/.build-id/41/6d536a4a066935c69081e14faf14e10d59d1f7
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/e7a1e2e9c3fce01963900bc61a0e9bb9aa757c
/usr/lib64/ocaml/ppx_compare
/usr/lib64/ocaml/ppx_compare/META
/usr/lib64/ocaml/ppx_compare/expander
/usr/lib64/ocaml/ppx_compare/expander/ppx_compare_expander.cma
/usr/lib64/ocaml/ppx_compare/expander/ppx_compare_expander.cmi
/usr/lib64/ocaml/ppx_compare/expander/ppx_compare_expander.cmxs
/usr/lib64/ocaml/ppx_compare/expander/ppx_compare_expander__.cmi
/usr/lib64/ocaml/ppx_compare/expander/ppx_compare_expander__Ppx_compare_expander_intf.cmi
/usr/lib64/ocaml/ppx_compare/ppx_compare.cma
/usr/lib64/ocaml/ppx_compare/ppx_compare.cmi
/usr/lib64/ocaml/ppx_compare/ppx_compare.cmxs
/usr/lib64/ocaml/ppx_compare/runtime-lib
/usr/lib64/ocaml/ppx_compare/runtime-lib/ppx_compare_lib.cma
/usr/lib64/ocaml/ppx_compare/runtime-lib/ppx_compare_lib.cmi
/usr/lib64/ocaml/ppx_compare/runtime-lib/ppx_compare_lib.cmxs
/usr/share/doc/ocaml-ppx-compare
/usr/share/doc/ocaml-ppx-compare/CHANGES.md
/usr/share/doc/ocaml-ppx-compare/README.md
/usr/share/licenses/ocaml-ppx-compare
/usr/share/licenses/ocaml-ppx-compare/LICENSE.md

References

Summary

In this tutorial we learn how to install ocaml-ppx-compare on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).