How To Install laptop-mode-tools on Debian 10
Introduction
In this tutorial we learn how to install laptop-mode-tools
on Debian 10.
What is laptop-mode-tools
laptop-mode-tools is:
Laptop mode is a Linux kernel feature that allows your laptop to save considerable power, by allowing the hard drive to spin down for longer periods of time. This package contains the userland scripts that are needed to enable laptop mode.
It includes support for automatically enabling laptop mode when the computer is working on batteries. It also supports various other power management features, such as starting and stopping daemons depending on power mode, automatically hibernating if battery levels are too low, and adjusting terminal blanking and X11 screen blanking
laptop-mode-tools uses the Linux kernel’s Laptop Mode feature and thus is also used on Desktops and Servers to conserve power
There are three methods to install laptop-mode-tools
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install laptop-mode-tools Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install laptop-mode-tools
using apt-get
by running the following command:
sudo apt-get -y install laptop-mode-tools
Install laptop-mode-tools Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install laptop-mode-tools
using apt
by running the following command:
sudo apt -y install laptop-mode-tools
Install laptop-mode-tools 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install laptop-mode-tools
using aptitude
by running the following command:
sudo aptitude -y install laptop-mode-tools
How To Uninstall laptop-mode-tools on Debian 10
To uninstall only the laptop-mode-tools
package we can use the following command:
sudo apt-get remove laptop-mode-tools
Uninstall laptop-mode-tools And Its Dependencies
To uninstall laptop-mode-tools
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove laptop-mode-tools
Remove laptop-mode-tools Configurations and Data
To remove laptop-mode-tools
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge laptop-mode-tools
Remove laptop-mode-tools configuration, data, and all of its dependencies
We can use the following command to remove laptop-mode-tools
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge laptop-mode-tools
Dependencies
laptop-mode-tools have the following dependencies:
References
Summary
In this tutorial we learn how to install laptop-mode-tools
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.