How To Install mali-midgard-dkms on Ubuntu 20.04

In this tutorial we learn how to install mali-midgard-dkms on Ubuntu 20.04. mali-midgard-dkms is Mali kernel driver for midgard hardware in DKMS format.

Introduction

In this tutorial we learn how to install mali-midgard-dkms on Ubuntu 20.04.

What is mali-midgard-dkms

mali-midgard-dkms is:

This provides the kernel module for the ARM Mali ‘midgard’ GPU series in dkms format. This covers the 6xx and 7xx GPU hardware devices. You need this kernel module as well the binary drivers to make the hardware work.

There are three methods to install mali-midgard-dkms 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 mali-midgard-dkms Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mali-midgard-dkms

Install mali-midgard-dkms Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install mali-midgard-dkms using apt by running the following command:

sudo apt -y install mali-midgard-dkms

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

sudo aptitude -y install mali-midgard-dkms

How To Uninstall mali-midgard-dkms on Ubuntu 20.04

To uninstall only the mali-midgard-dkms package we can use the following command:

sudo apt-get remove mali-midgard-dkms

Uninstall mali-midgard-dkms And Its Dependencies

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

sudo apt-get -y autoremove mali-midgard-dkms

Remove mali-midgard-dkms Configurations and Data

To remove mali-midgard-dkms configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge mali-midgard-dkms

Remove mali-midgard-dkms configuration, data, and all of its dependencies

We can use the following command to remove mali-midgard-dkms configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge mali-midgard-dkms

References

Summary

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