How To Install ocaml-type-conv on CentOS 7

In this tutorial we learn how to install ocaml-type-conv on CentOS 7. ocaml-type-conv is OCaml base library for type conversion

Introduction

In this tutorial we learn how to install ocaml-type-conv on CentOS 7.

What is ocaml-type-conv

The type-conv mini library factors out functionality needed by different preprocessors that generate code from type specifications, because this functionality cannot be duplicated without losing the ability to use these preprocessors simultaneously.

We can use yum or dnf to install ocaml-type-conv on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-type-conv.

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

sudo yum -y install ocaml-type-conv

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

sudo dnf -y install ocaml-type-conv

How To Uninstall ocaml-type-conv on CentOS 7

To uninstall only the ocaml-type-conv package we can use the following command:

sudo dnf remove ocaml-type-conv

References

Summary

In this tutorial we learn how to install ocaml-type-conv on CentOS 7 using yum and dnf.