How To Install qhull-bin on Ubuntu 18.04

In this tutorial we learn how to install qhull-bin on Ubuntu 18.04. qhull-bin is calculate convex hulls and related structures (utilities)

Introduction

In this tutorial we learn how to install qhull-bin on Ubuntu 18.04.

What is qhull-bin

qhull-bin is:

Qhull computes convex hulls, Delaunay triangulations, halfspace intersections about a point, Voronoi diagrams, furthest-site Delaunay triangulations, and furthest-site Voronoi diagrams. It runs in 2-d, 3-d, 4-d, and higher dimensions.

This package contains the qhull executable that gives a pipe interface to some of the functionality of the library. Also included is rbox is a useful tool in generating input for Qhull; it generates hypercubes, diamonds, cones, circles, simplices, spirals, lattices, and random points.

Qhull produces graphical output for Geomview. This helps with understanding the output (http://www.geomview.org).

There are three methods to install qhull-bin 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 qhull-bin Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install qhull-bin

Install qhull-bin Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install qhull-bin

Install qhull-bin 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 qhull-bin using aptitude by running the following command:

sudo aptitude -y install qhull-bin

How To Uninstall qhull-bin on Ubuntu 18.04

To uninstall only the qhull-bin package we can use the following command:

sudo apt-get remove qhull-bin

Uninstall qhull-bin And Its Dependencies

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

sudo apt-get -y autoremove qhull-bin

Remove qhull-bin Configurations and Data

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

sudo apt-get -y purge qhull-bin

Remove qhull-bin configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge qhull-bin

References

Summary

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