How To Install ocaml-lablgtk on CentOS 7

In this tutorial we learn how to install ocaml-lablgtk on CentOS 7. ocaml-lablgtk is Objective Caml interface to gtk+

Introduction

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

What is ocaml-lablgtk

LablGTK is is an Objective Caml interface to gtk+. It uses the rich type system of Objective Caml 3 to provide a strongly typed, yet very comfortable, object-oriented interface to gtk+. This is not that easy if you know the dynamic typing approach taken by gtk+.

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

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

sudo yum -y install ocaml-lablgtk

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

sudo dnf -y install ocaml-lablgtk

How To Uninstall ocaml-lablgtk on CentOS 7

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

sudo dnf remove ocaml-lablgtk

References

Summary

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