How To Install libcudf-ocaml-dev on Ubuntu 18.04

In this tutorial we learn how to install libcudf-ocaml-dev on Ubuntu 18.04. libcudf-ocaml-dev is OCaml library to access descriptions of package upgrade problems

Introduction

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

What is libcudf-ocaml-dev

libcudf-ocaml-dev is:

libCUDF is a library to manipulate so called CUDF documents. A CUDF document describe an upgrade problem, as faced by package managers in popular package-based GNU/Linux distributions.

A CUDF document consists of a package universe and of a user request. The package universe describes all packages known to the package manager, a subset of which (the package status) denotes the package being currently installed on the target machine. The user request denotes a change to the package status as requested by the user.

A CUDF document is naturally complemented by a solution describing the resulting package status (if any) implementing the user request, as found by a package manager.

libCUDF enables manipulation of CUDF and related documents.

This package contains all the development stuff you need to use libCUDF in your OCaml programs.

There are three methods to install libcudf-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 libcudf-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 libcudf-ocaml-dev using apt-get by running the following command:

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

Install libcudf-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcudf-ocaml-dev

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

sudo aptitude -y install libcudf-ocaml-dev

How To Uninstall libcudf-ocaml-dev on Ubuntu 18.04

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

sudo apt-get remove libcudf-ocaml-dev

Uninstall libcudf-ocaml-dev And Its Dependencies

To uninstall libcudf-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 libcudf-ocaml-dev

Remove libcudf-ocaml-dev Configurations and Data

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

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

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

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

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

References

Summary

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