How To Install ocaml-gettext on CentOS 7

In this tutorial we learn how to install ocaml-gettext on CentOS 7. ocaml-gettext is OCaml library for i18n

Introduction

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

What is ocaml-gettext

Ocaml-gettext provides support for internationalization of Ocaml programs. Constraints * provides a pure Ocaml implementation, * the API should be as close as possible to GNU gettext, * provides a way to automatically extract translatable strings from Ocaml source code.

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

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

sudo yum -y install ocaml-gettext

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

sudo dnf -y install ocaml-gettext

How To Uninstall ocaml-gettext on CentOS 7

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

sudo dnf remove ocaml-gettext

References

Summary

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