How To Install rtl8821ce-dkms on Ubuntu 22.04
Introduction
In this tutorial we learn how to install rtl8821ce-dkms on Ubuntu 22.04.
What is rtl8821ce-dkms
rtl8821ce-dkms is:
Realtek provides the solution for WLAN in hardware and software. The software package could be adopted for Realtek RTL8821CE WLAN series hardware on Linux based platforms.
This package provides the DKMS source code for the rtl8821ce kernel module. Kernel source or headers are required to compile these modules.
There are three methods to install rtl8821ce-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 rtl8821ce-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 rtl8821ce-dkms using apt-get by running the following command:
sudo apt-get -y install rtl8821ce-dkms
Install rtl8821ce-dkms Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install rtl8821ce-dkms using apt by running the following command:
sudo apt -y install rtl8821ce-dkms
Install rtl8821ce-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 rtl8821ce-dkms using aptitude by running the following command:
sudo aptitude -y install rtl8821ce-dkms
How To Uninstall rtl8821ce-dkms on Ubuntu 22.04
To uninstall only the rtl8821ce-dkms package we can use the following command:
sudo apt-get remove rtl8821ce-dkms
Uninstall rtl8821ce-dkms And Its Dependencies
To uninstall rtl8821ce-dkms and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove rtl8821ce-dkms
Remove rtl8821ce-dkms Configurations and Data
To remove rtl8821ce-dkms configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge rtl8821ce-dkms
Remove rtl8821ce-dkms configuration, data, and all of its dependencies
We can use the following command to remove rtl8821ce-dkms configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge rtl8821ce-dkms
References
Summary
In this tutorial we learn how to install rtl8821ce-dkms package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.