How To Install glx-alternative-mesa on Kali Linux

In this tutorial we learn how to install glx-alternative-mesa on Kali Linux. glx-alternative-mesa is allows the selection of MESA as GLX provider

Introduction

In this tutorial we learn how to install glx-alternative-mesa on Kali Linux.

What is glx-alternative-mesa

glx-alternative-mesa is:

In setups with several GLX providers (e.g. the free MESA implementation and proprietary graphics hardware vendor implementations) this metapackage allows one to switch back to MESA.

Use ‘update-glx –config glx’ to select an implementation.

This package does not depend on the corresponding MESA libraries. In order to install the MESA libraries, install the libgl1-mesa-glx package instead.

There are three methods to install glx-alternative-mesa on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install glx-alternative-mesa Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install glx-alternative-mesa

Install glx-alternative-mesa Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install glx-alternative-mesa

Install glx-alternative-mesa Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install glx-alternative-mesa using aptitude by running the following command:

sudo aptitude -y install glx-alternative-mesa

How To Uninstall glx-alternative-mesa on Kali Linux

To uninstall only the glx-alternative-mesa package we can use the following command:

sudo apt-get remove glx-alternative-mesa

Uninstall glx-alternative-mesa And Its Dependencies

To uninstall glx-alternative-mesa and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove glx-alternative-mesa

Remove glx-alternative-mesa Configurations and Data

To remove glx-alternative-mesa configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge glx-alternative-mesa

Remove glx-alternative-mesa configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge glx-alternative-mesa

Dependencies

glx-alternative-mesa have the following dependencies:

References

Summary

In this tutorial we learn how to install glx-alternative-mesa package on Kali Linux using different package management tools: apt, apt-get and aptitude.