How To Install apmd on Debian 9

In this tutorial we learn how to install apmd on Debian 9. apmd is Utilities for Advanced Power Management (APM)

Introduction

In this tutorial we learn how to install apmd on Debian 9.

What is apmd

apmd is:

On laptop computers, the Advanced Power Management (APM) support provides access to battery status information and may help you to conserve battery power, depending on your laptop and the APM implementation. The apmd program also lets you run arbitrary programs when APM events happen (for example, you can eject PCMCIA devices when you suspend, or change hard drive timeouts when you connect the battery).

This package contains apmd(8), a daemon for logging and acting on APM events; and apm(1), a client that prints the information in /proc/apm in a readable format.

apmd is notified of APM events by the APM driver in the kernel.

Since lenny Debian kernels are not built with APM support anymore. You need to compile a kernel with apm support enabled to use this package. You need to boot the kernel with the “apm=on” option if you want to enable the driver.

In most cases, users may want to know that there are newer power management schemes, like ACPI.

There are three methods to install apmd 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 apmd Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install apmd using apt-get by running the following command:

sudo apt-get -y install apmd

Install apmd Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install apmd using apt by running the following command:

sudo apt -y install apmd

Install apmd 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 apmd using aptitude by running the following command:

sudo aptitude -y install apmd

How To Uninstall apmd on Debian 9

To uninstall only the apmd package we can use the following command:

sudo apt-get remove apmd

Uninstall apmd And Its Dependencies

To uninstall apmd and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove apmd

Remove apmd Configurations and Data

To remove apmd configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge apmd

Remove apmd configuration, data, and all of its dependencies

We can use the following command to remove apmd configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge apmd

Dependencies

apmd have the following dependencies:

References

Summary

In this tutorial we learn how to install apmd package on Debian 9 using different package management tools: apt, apt-get and aptitude.