How To Install libtophide-ocaml-dev on Ubuntu 18.04

In this tutorial we learn how to install libtophide-ocaml-dev on Ubuntu 18.04. libtophide-ocaml-dev is hide values that start with _ in OCaml toplevel

Introduction

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

What is libtophide-ocaml-dev

libtophide-ocaml-dev is:

This library hides toplevel values whose name starts with an underscore. This is useful for some Camlp4 syntax extensions that produce lots of global identifiers that should remain hidden.

There are three methods to install libtophide-ocaml-dev 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 libtophide-ocaml-dev Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libtophide-ocaml-dev

Install libtophide-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtophide-ocaml-dev

Install libtophide-ocaml-dev 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 libtophide-ocaml-dev using aptitude by running the following command:

sudo aptitude -y install libtophide-ocaml-dev

How To Uninstall libtophide-ocaml-dev on Ubuntu 18.04

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

sudo apt-get remove libtophide-ocaml-dev

Uninstall libtophide-ocaml-dev And Its Dependencies

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

sudo apt-get -y autoremove libtophide-ocaml-dev

Remove libtophide-ocaml-dev Configurations and Data

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

sudo apt-get -y purge libtophide-ocaml-dev

Remove libtophide-ocaml-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtophide-ocaml-dev

References

Summary

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