How To Install rtl8812au-dkms on Ubuntu 22.04

In this tutorial we learn how to install rtl8812au-dkms on Ubuntu 22.04. rtl8812au-dkms is dkms source for the r8812au network driver

Introduction

In this tutorial we learn how to install rtl8812au-dkms on Ubuntu 22.04.

What is rtl8812au-dkms

rtl8812au-dkms is:

rtl8812au is the Linux device driver released for the RealTek RTL8812AU WiFi controllers with USB interface.

This package provides the dkms source code for the rtl8812au kernel module. Kernel source or headers are required to compile these modules.

There are three methods to install rtl8812au-dkms on Ubuntu 22.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 rtl8812au-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 rtl8812au-dkms using apt-get by running the following command:

sudo apt-get -y install rtl8812au-dkms

Install rtl8812au-dkms Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install rtl8812au-dkms

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

sudo aptitude -y install rtl8812au-dkms

How To Uninstall rtl8812au-dkms on Ubuntu 22.04

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

sudo apt-get remove rtl8812au-dkms

Uninstall rtl8812au-dkms And Its Dependencies

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

sudo apt-get -y autoremove rtl8812au-dkms

Remove rtl8812au-dkms Configurations and Data

To remove rtl8812au-dkms configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge rtl8812au-dkms

Remove rtl8812au-dkms configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge rtl8812au-dkms

References

Summary

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