How To Install libgbm1 on Ubuntu 20.04

In this tutorial we learn how to install libgbm1 on Ubuntu 20.04. libgbm1 is generic buffer management API – runtime generic buffer management API – runtime generic buffer management API – runtime

Introduction

In this tutorial we learn how to install libgbm1 on Ubuntu 20.04.

What is libgbm1

libgbm1 is:

This package contains the GBM buffer management library. It provides a mechanism for allocating buffers for graphics rendering tied to Mesa.

GBM is intended to be used as a native platform for EGL on drm or openwfd. 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: libgbm1 Status: install ok installed Priority: optional Section: libs Installed-Size: 146 Maintainer: Ubuntu Developers [email protected] Architecture: amd64 Multi-Arch: same Source: mesa Version: 20.2.6-0ubuntu0.20.04.1 Depends: libc6 (>= 2.29), libdrm2 (>= 2.4.75), libexpat1 (>= 2.0.1), libwayland-server0 (>= 1.15.0) Description-en: generic buffer management API – runtime This package contains the GBM buffer management library. It provides a mechanism for allocating buffers for graphics rendering tied to Mesa.

GBM is intended to be used as a native platform for EGL on drm or openwfd. Original-Maintainer: Debian X Strike Force [email protected] Homepage: https://mesa3d.org/

Package: libgbm1 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: 151 Depends: libc6 (>= 2.29), libdrm2 (>= 2.4.75), libexpat1 (>= 2.0.1), libwayland-server0 (>= 1.15.0) Filename: pool/main/m/mesa/libgbm1_20.0.4-2ubuntu1_amd64.deb Size: 27804 MD5sum: 8a8ce41f06c0a6fb207591d308ab0301 SHA1: 65c582c01ec038b09be096dbcc4927c6303f13c9 SHA256: f7521e95587ad41c42a2283dabb305693a1eb2321b9bc2631c8b9485c0fb0903 Homepage: https://mesa3d.org/ Description-en: generic buffer management API – runtime This package contains the GBM buffer management library. It provides a mechanism for allocating buffers for graphics rendering tied to Mesa.

GBM is intended to be used as a native platform for EGL on drm or openwfd. 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 libgbm1 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 libgbm1 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libgbm1

Install libgbm1 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libgbm1 using apt by running the following command:

sudo apt -y install libgbm1

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

sudo aptitude -y install libgbm1

How To Uninstall libgbm1 on Ubuntu 20.04

To uninstall only the libgbm1 package we can use the following command:

sudo apt-get remove libgbm1

Uninstall libgbm1 And Its Dependencies

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

sudo apt-get -y autoremove libgbm1

Remove libgbm1 Configurations and Data

To remove libgbm1 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libgbm1

Remove libgbm1 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgbm1

References

Summary

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