How To Install acpid on Debian 9
Introduction
In this tutorial we learn how to install acpid
on Debian 9.
What is acpid
acpid is:
Modern computers support the Advanced Configuration and Power Interface (ACPI) to allow intelligent power management on your system and to query battery and configuration status.
ACPID is a completely flexible, totally extensible daemon for delivering ACPI events. It listens on netlink interface (or on the deprecated file /proc/acpi/event), and when an event occurs, executes programs to handle the event. The programs it executes are configured through a set of configuration files, which can be dropped into place by packages or by the admin.
There are three methods to install acpid
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install acpid Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install acpid
using apt-get
by running the following command:
sudo apt-get -y install acpid
Install acpid Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install acpid
using apt
by running the following command:
sudo apt -y install acpid
Install acpid 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 acpid
using aptitude
by running the following command:
sudo aptitude -y install acpid
How To Uninstall acpid on Debian 9
To uninstall only the acpid
package we can use the following command:
sudo apt-get remove acpid
Uninstall acpid And Its Dependencies
To uninstall acpid
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove acpid
Remove acpid Configurations and Data
To remove acpid
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge acpid
Remove acpid configuration, data, and all of its dependencies
We can use the following command to remove acpid
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge acpid
Dependencies
acpid have the following dependencies:
References
Summary
In this tutorial we learn how to install acpid
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.