How To Install libopengl-dev on Ubuntu 20.04

In this tutorial we learn how to install libopengl-dev on Ubuntu 20.04. libopengl-dev is Vendor neutral GL dispatch library – OpenGL development files Vendor neutral GL dispatch library – OpenGL development files

Introduction

In this tutorial we learn how to install libopengl-dev on Ubuntu 20.04.

What is libopengl-dev

libopengl-dev is:

This is an implementation of the vendor-neutral dispatch layer for arbitrating OpenGL API calls between multiple vendors on a per-screen basis.

This package provides the development environment for compiling programs against the OpenGL library.

Package: libopengl-dev Architecture: amd64 Version: 1.3.1-1 Multi-Arch: same Priority: optional Section: libs Source: libglvnd Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian X Strike Force [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 22 Depends: libopengl0 (= 1.3.1-1) Breaks: libglvnd-dev (« 1.3.0-1) Replaces: libglvnd-dev (« 1.3.0-1) Filename: pool/main/libg/libglvnd/libopengl-dev_1.3.1-1_amd64.deb Size: 3568 MD5sum: 786be70e075627001e0b4a2a5ff8f2c5 SHA1: a206dc72a5e07fc77df7b8585282012e4505816b SHA256: b510273720aec8f0c606d96760fd8ac496fb5a54226c2af9827e48841a5214af Homepage: https://gitlab.freedesktop.org/glvnd/libglvnd Description-en: Vendor neutral GL dispatch library – OpenGL development files This is an implementation of the vendor-neutral dispatch layer for arbitrating OpenGL API calls between multiple vendors on a per-screen basis.

This package provides the development environment for compiling programs against the OpenGL library.

There are three methods to install libopengl-dev on Ubuntu 20.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 libopengl-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 libopengl-dev using apt-get by running the following command:

sudo apt-get -y install libopengl-dev

Install libopengl-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libopengl-dev

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

sudo aptitude -y install libopengl-dev

How To Uninstall libopengl-dev on Ubuntu 20.04

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

sudo apt-get remove libopengl-dev

Uninstall libopengl-dev And Its Dependencies

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

sudo apt-get -y autoremove libopengl-dev

Remove libopengl-dev Configurations and Data

To remove libopengl-dev configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libopengl-dev

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

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

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

References

Summary

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