How To Install librem-ec-acpi-dkms on Ubuntu 22.04
Introduction
In this tutorial we learn how to install librem-ec-acpi-dkms on Ubuntu 22.04.
What is librem-ec-acpi-dkms
librem-ec-acpi-dkms is:
The driver librem_ec_acpi provides Linux kernel support for the ACPI embedded controller of the following devices:
- Purism Librem 14 laptop
Advanced Configuration and Power Interface (ACPI) is a protocol to discover and configure computer hardware components, to perform power management e.g. putting unused hardware components to sleep, to perform auto configuration e.g. Plug and Play and hot swapping, and to perform status monitoring.
This package provides sources for the librem_ec_acpi kernel module, for use with the Dynamic Kernel Module Support (dkms) framework.
There are three methods to install librem-ec-acpi-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 librem-ec-acpi-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 librem-ec-acpi-dkms using apt-get by running the following command:
sudo apt-get -y install librem-ec-acpi-dkms
Install librem-ec-acpi-dkms Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install librem-ec-acpi-dkms using apt by running the following command:
sudo apt -y install librem-ec-acpi-dkms
Install librem-ec-acpi-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 librem-ec-acpi-dkms using aptitude by running the following command:
sudo aptitude -y install librem-ec-acpi-dkms
How To Uninstall librem-ec-acpi-dkms on Ubuntu 22.04
To uninstall only the librem-ec-acpi-dkms package we can use the following command:
sudo apt-get remove librem-ec-acpi-dkms
Uninstall librem-ec-acpi-dkms And Its Dependencies
To uninstall librem-ec-acpi-dkms and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove librem-ec-acpi-dkms
Remove librem-ec-acpi-dkms Configurations and Data
To remove librem-ec-acpi-dkms configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge librem-ec-acpi-dkms
Remove librem-ec-acpi-dkms configuration, data, and all of its dependencies
We can use the following command to remove librem-ec-acpi-dkms configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge librem-ec-acpi-dkms
References
Summary
In this tutorial we learn how to install librem-ec-acpi-dkms package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.