How To Install liblabltk-ocaml on Ubuntu 18.04

In this tutorial we learn how to install liblabltk-ocaml on Ubuntu 18.04. liblabltk-ocaml is OCaml bindings to Tcl/Tk (runtime libraries)

Introduction

In this tutorial we learn how to install liblabltk-ocaml on Ubuntu 18.04.

What is liblabltk-ocaml

liblabltk-ocaml is:

mlTk is a library for interfacing OCaml with the scripting language Tcl/Tk.

In addition to the basic interface with Tcl/Tk, this package contains

  • the “jpf” library, written by Jun P. Furuse; it contains a “file selector” and “balloon help” support;
  • the “frx” library, written by Francois Rouaix;
  • the “tkanim” library, which supports animated gif loading/display.

This package contains runtime libraries.

There are three methods to install liblabltk-ocaml on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install liblabltk-ocaml Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install liblabltk-ocaml using apt-get by running the following command:

sudo apt-get -y install liblabltk-ocaml

Install liblabltk-ocaml Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblabltk-ocaml

Install liblabltk-ocaml Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install liblabltk-ocaml using aptitude by running the following command:

sudo aptitude -y install liblabltk-ocaml

How To Uninstall liblabltk-ocaml on Ubuntu 18.04

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

sudo apt-get remove liblabltk-ocaml

Uninstall liblabltk-ocaml And Its Dependencies

To uninstall liblabltk-ocaml and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove liblabltk-ocaml

Remove liblabltk-ocaml Configurations and Data

To remove liblabltk-ocaml configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge liblabltk-ocaml

Remove liblabltk-ocaml configuration, data, and all of its dependencies

We can use the following command to remove liblabltk-ocaml configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge liblabltk-ocaml

References

Summary

In this tutorial we learn how to install liblabltk-ocaml package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.