How To Install laptop-mode-tools on Kali Linux
Introduction
In this tutorial we learn how to install laptop-mode-tools on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install laptop-mode-tools using apt-get by running the following command:
sudo apt-get -y install laptop-mode-toolsInstall laptop-mode-tools Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install laptop-mode-tools using apt by running the following command:
sudo apt -y install laptop-mode-toolsInstall laptop-mode-tools Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install laptop-mode-tools using aptitude by running the following command:
sudo aptitude -y install laptop-mode-toolsHow To Uninstall laptop-mode-tools on Kali Linux
To uninstall only the laptop-mode-tools package we can use the following command:
sudo apt-get remove laptop-mode-toolsUninstall laptop-mode-tools And Its Dependencies
To uninstall laptop-mode-tools and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove laptop-mode-toolsRemove laptop-mode-tools Configurations and Data
To remove laptop-mode-tools configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge laptop-mode-toolsRemove 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-toolsDependencies
laptop-mode-tools have the following dependencies:
References
Summary
In this tutorial we learn how to install laptop-mode-tools package on Kali Linux using different package management tools: apt, apt-get and aptitude.