How To Install glx-alternative-nvidia on Kali Linux

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

Introduction

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

What is glx-alternative-nvidia

glx-alternative-nvidia 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 to the non-free NVIDIA driver and libraries.

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

This package does not depend on the corresponding NVIDIA libraries. In order to install the NVIDIA driver and libraries, install the nvidia-driver package instead.

There are three methods to install glx-alternative-nvidia 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-nvidia 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-nvidia using apt-get by running the following command:

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

Install glx-alternative-nvidia Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install glx-alternative-nvidia

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

sudo aptitude -y install glx-alternative-nvidia

How To Uninstall glx-alternative-nvidia on Kali Linux

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

sudo apt-get remove glx-alternative-nvidia

Uninstall glx-alternative-nvidia And Its Dependencies

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

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

Remove glx-alternative-nvidia Configurations and Data

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

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

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

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

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

Dependencies

glx-alternative-nvidia have the following dependencies:

References

Summary

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