How To Install ocaml-sha on CentOS 8

In this tutorial we learn how to install ocaml-sha on CentOS 8. ocaml-sha is Binding to the SHA cryptographic functions

Introduction

In this tutorial we learn how to install ocaml-sha on CentOS 8.

What is ocaml-sha

A binding for SHA interface code in OCaml. Offering the same interface than the MD5 digest included in the OCaml standard library. It’s currently providing SHA1, SHA256 and SHA512 hash functions.

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

Install ocaml-sha on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ocaml-sha using yum by running the following command:

sudo yum -y install ocaml-sha

Install ocaml-sha on CentOS 8 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-sha using dnf by running the following command:

sudo dnf -y install ocaml-sha

How To Uninstall ocaml-sha on CentOS 8

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

sudo dnf remove ocaml-sha

References

Summary

In this tutorial we learn how to install ocaml-sha on CentOS 8 using yum and dnf.