How To Install glmark2-drm on Ubuntu 18.04

In this tutorial we learn how to install glmark2-drm on Ubuntu 18.04. glmark2-drm is OpenGL 2.0 DRM benchmark

Introduction

In this tutorial we learn how to install glmark2-drm on Ubuntu 18.04.

What is glmark2-drm

glmark2-drm is:

A benchmark for OpenGL (ES) 2.0 that uses only the OpenGL ES 2.0 compatible API. It contains tests for standard OpenGL (ES) 2.0 features, such as vertex arrays, VBOs, texturing and shaders.

This package contains the OpenGL 2.0 variant of the benchmark for DRM.

There are three methods to install glmark2-drm on Ubuntu 18.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 glmark2-drm Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install glmark2-drm

Install glmark2-drm Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install glmark2-drm

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

sudo aptitude -y install glmark2-drm

How To Uninstall glmark2-drm on Ubuntu 18.04

To uninstall only the glmark2-drm package we can use the following command:

sudo apt-get remove glmark2-drm

Uninstall glmark2-drm And Its Dependencies

To uninstall glmark2-drm and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove glmark2-drm

Remove glmark2-drm Configurations and Data

To remove glmark2-drm configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge glmark2-drm

Remove glmark2-drm configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge glmark2-drm

References

Summary

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