How To Install libglu1-mesa on Debian 10

Learn how to install libglu1-mesa on Debian 10 with this tutorial. libglu1-mesa is Mesa OpenGL utility library (GLU)

Introduction

In this tutorial we learn how to install libglu1-mesa on Debian 10.

What is libglu1-mesa

libglu1-mesa is:

GLU offers simple interfaces for building mipmaps; checking for the presence of extensions in the OpenGL (or other libraries which follow the same conventions for advertising extensions); drawing piecewise-linear curves, NURBS, quadrics and other primitives (including, but not limited to, teapots); tesselating surfaces; setting up projection matrices and unprojecting screen coordinates to world coordinates.

On Linux, this library is also known as libGLU or libGLU.so.1.

This package provides the SGI implementation of GLU provided by the Mesa project (ergo the “-mesa” suffix).

There are three methods to install libglu1-mesa on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libglu1-mesa Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libglu1-mesa

Install libglu1-mesa Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libglu1-mesa

Install libglu1-mesa 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libglu1-mesa

How To Uninstall libglu1-mesa on Debian 10

To uninstall only the libglu1-mesa package we can use the following command:

sudo apt-get remove libglu1-mesa

Uninstall libglu1-mesa And Its Dependencies

To uninstall libglu1-mesa and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libglu1-mesa

Remove libglu1-mesa Configurations and Data

To remove libglu1-mesa configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libglu1-mesa

Remove libglu1-mesa configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libglu1-mesa

Dependencies

libglu1-mesa have the following dependencies:

References

Summary

In this tutorial we learn how to install libglu1-mesa package on Debian 10 using different package management tools: apt, apt-get and aptitude.