How To Install libgli-dev on Debian 9

In this tutorial we learn how to install libgli-dev on Debian 9. libgli-dev is C++ image library for graphics software

Introduction

In this tutorial we learn how to install libgli-dev on Debian 9.

What is libgli-dev

libgli-dev is:

OpenGL Image (GLI) is a header only C++ image library for graphics software.

GLI provides classes and functions to load image files (KTX and DDS), facilitate graphics APIs texture creation, compare textures, access texture texels, sample textures, convert textures, generate mipmaps, etc.

This library works perfectly with OpenGL or Vulkan but it also ensures interoperability with other third party libraries and SDK. It is a good candidate for software rendering (raytracing / rasterisation), image processing, image based software testing or any development context that requires a simple and convenient image library.

This package provides the header-only library.

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

Install libgli-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 libgli-dev using apt-get by running the following command:

sudo apt-get -y install libgli-dev

Install libgli-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgli-dev

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

sudo aptitude update

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

sudo aptitude -y install libgli-dev

How To Uninstall libgli-dev on Debian 9

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

sudo apt-get remove libgli-dev

Uninstall libgli-dev And Its Dependencies

To uninstall libgli-dev and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libgli-dev

Remove libgli-dev Configurations and Data

To remove libgli-dev configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libgli-dev

Remove libgli-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgli-dev

Dependencies

libgli-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libgli-dev package on Debian 9 using different package management tools: apt, apt-get and aptitude.