How To Install mesa-vulkan-drivers on Ubuntu 18.04

In this tutorial we learn how to install mesa-vulkan-drivers on Ubuntu 18.04. mesa-vulkan-drivers is Mesa Vulkan graphics drivers

Introduction

In this tutorial we learn how to install mesa-vulkan-drivers on Ubuntu 18.04.

What is mesa-vulkan-drivers

mesa-vulkan-drivers is:

Vulkan is a low-overhead 3D graphics and compute API. This package includes Vulkan drivers provided by the Mesa project.

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

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

sudo apt-get update

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

sudo apt-get -y install mesa-vulkan-drivers

Install mesa-vulkan-drivers Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mesa-vulkan-drivers

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

sudo aptitude -y install mesa-vulkan-drivers

How To Uninstall mesa-vulkan-drivers on Ubuntu 18.04

To uninstall only the mesa-vulkan-drivers package we can use the following command:

sudo apt-get remove mesa-vulkan-drivers

Uninstall mesa-vulkan-drivers And Its Dependencies

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

sudo apt-get -y autoremove mesa-vulkan-drivers

Remove mesa-vulkan-drivers Configurations and Data

To remove mesa-vulkan-drivers configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge mesa-vulkan-drivers

Remove mesa-vulkan-drivers configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mesa-vulkan-drivers

References

Summary

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