How To Install libgl1-mesa-dri on Ubuntu 20.04

In this tutorial we learn how to install libgl1-mesa-dri on Ubuntu 20.04. libgl1-mesa-dri is free implementation of the OpenGL API – DRI modules free implementation of the OpenGL API – DRI modules free implementation of the OpenGL API – DRI modules

Introduction

In this tutorial we learn how to install libgl1-mesa-dri on Ubuntu 20.04.

What is libgl1-mesa-dri

libgl1-mesa-dri is:

This version of Mesa provides GLX and DRI capabilities: it is capable of both direct and indirect rendering. For direct rendering, it can use DRI modules from the libgl1-mesa-dri package to accelerate drawing.

This package does not include the OpenGL library itself, only the DRI modules for accelerating direct rendering.

For a complete description of Mesa, please look at the libglx-mesa0 package. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: libgl1-mesa-dri Status: install ok installed Priority: optional Section: libs Installed-Size: 288766 Maintainer: Ubuntu Developers [email protected] Architecture: amd64 Multi-Arch: same Source: mesa Version: 20.2.6-0ubuntu0.20.04.1 Depends: libc6 (>= 2.29), libdrm-amdgpu1 (>= 2.4.100), libdrm-intel1 (>= 2.4.38), libdrm-nouveau2 (>= 2.4.66), libdrm-radeon1 (>= 2.4.31), libdrm2 (>= 2.4.75), libelf1 (>= 0.142), libexpat1 (>= 2.0.1), libgcc-s1 (>= 3.4), libglapi-mesa (= 20.2.6-0ubuntu0.20.04.1), libllvm11 (>= 1:9~svn298832-1~), libsensors5 (>= 1:3.5.0), libstdc++6 (>= 5.2), libvulkan1 (>= 1.2.131.2), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4) Description-en: free implementation of the OpenGL API – DRI modules This version of Mesa provides GLX and DRI capabilities: it is capable of both direct and indirect rendering. For direct rendering, it can use DRI modules from the libgl1-mesa-dri package to accelerate drawing.

This package does not include the OpenGL library itself, only the DRI modules for accelerating direct rendering.

For a complete description of Mesa, please look at the libglx-mesa0 package. Original-Maintainer: Debian X Strike Force [email protected] Homepage: https://mesa3d.org/

Package: libgl1-mesa-dri Architecture: amd64 Version: 20.0.4-2ubuntu1 Multi-Arch: same Priority: optional Section: libs 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: 266517 Depends: libc6 (>= 2.29), libdrm-amdgpu1 (>= 2.4.100), libdrm-intel1 (>= 2.4.38), libdrm-nouveau2 (>= 2.4.66), libdrm-radeon1 (>= 2.4.31), libdrm2 (>= 2.4.75), libelf1 (>= 0.142), libexpat1 (>= 2.0.1), libgcc-s1 (>= 3.4), libglapi-mesa (= 20.0.4-2ubuntu1), libllvm9 (>= 1:9~svn298832-1~), libsensors5 (>= 1:3.5.0), libstdc++6 (>= 5.2), libvulkan1 (>= 1.2.131.2), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4) Filename: pool/main/m/mesa/libgl1-mesa-dri_20.0.4-2ubuntu1_amd64.deb Size: 9453084 MD5sum: fb9a648e82bcf313c4381febd7c8a9fd SHA1: 8f20228464830411d18752ac33c8e824fe794421 SHA256: aaa3ed30eace17f20e5f0e19466f9f58b4f8cb4dbcdc4b68071c5c3e55b1d885 Homepage: https://mesa3d.org/ Description-en: free implementation of the OpenGL API – DRI modules This version of Mesa provides GLX and DRI capabilities: it is capable of both direct and indirect rendering. For direct rendering, it can use DRI modules from the libgl1-mesa-dri package to accelerate drawing.

This package does not include the OpenGL library itself, only the DRI modules for accelerating direct rendering.

For a complete description of Mesa, please look at the libglx-mesa0 package. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install libgl1-mesa-dri 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 libgl1-mesa-dri Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libgl1-mesa-dri

Install libgl1-mesa-dri Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgl1-mesa-dri

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

sudo aptitude -y install libgl1-mesa-dri

How To Uninstall libgl1-mesa-dri on Ubuntu 20.04

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

sudo apt-get remove libgl1-mesa-dri

Uninstall libgl1-mesa-dri And Its Dependencies

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

sudo apt-get -y autoremove libgl1-mesa-dri

Remove libgl1-mesa-dri Configurations and Data

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

sudo apt-get -y purge libgl1-mesa-dri

Remove libgl1-mesa-dri configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgl1-mesa-dri

References

Summary

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