How To Install mesa-common-dev on Ubuntu 20.04

In this tutorial we learn how to install mesa-common-dev on Ubuntu 20.04. mesa-common-dev is Developer documentation for Mesa Developer documentation for Mesa

Introduction

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

What is mesa-common-dev

mesa-common-dev is:

This package includes the specifications for the Mesa-specific OpenGL extensions, the complete set of release notes and the development header files common to all Mesa packages.

Package: mesa-common-dev Architecture: amd64 Version: 20.0.4-2ubuntu1 Multi-Arch: same Priority: optional Section: devel Source: mesa Origin: Ubuntu Maintainer: Ubuntu X-SWAT [email protected] Original-Maintainer: Debian X Strike Force [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 3362 Depends: libgl-dev, libglx-dev, libx11-dev, libdrm-dev (>= 2.4.95) Breaks: libegl1-mesa-dev (« 18.2.5-2) Replaces: libegl1-mesa-dev (« 18.2.5-2) Filename: pool/main/m/mesa/mesa-common-dev_20.0.4-2ubuntu1_amd64.deb Size: 637656 MD5sum: f61f32689fe3478fecdf7dd8b2f66dde SHA1: 7dd618b6a3635689af8905fb0ff3f016e905ca68 SHA256: 96a93e017180a0e7f77e2d2447f04b5e7ccc1dd410687efe868ce956bc594e72 Homepage: https://mesa3d.org/ Description-en: Developer documentation for Mesa This package includes the specifications for the Mesa-specific OpenGL extensions, the complete set of release notes and the development header files common to all Mesa packages.

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

sudo apt-get -y install mesa-common-dev

Install mesa-common-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mesa-common-dev

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

sudo aptitude -y install mesa-common-dev

How To Uninstall mesa-common-dev on Ubuntu 20.04

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

sudo apt-get remove mesa-common-dev

Uninstall mesa-common-dev And Its Dependencies

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

sudo apt-get -y autoremove mesa-common-dev

Remove mesa-common-dev Configurations and Data

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

sudo apt-get -y purge mesa-common-dev

Remove mesa-common-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mesa-common-dev

References

Summary

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