How To Install fdpowermon on Ubuntu 22.04

In this tutorial we learn how to install fdpowermon on Ubuntu 22.04. fdpowermon is simple battery power monitor for laptops with ACPI

Introduction

In this tutorial we learn how to install fdpowermon on Ubuntu 22.04.

What is fdpowermon

fdpowermon is:

fdpowermon is a simple perl script that installs an icon in a system tray compatible with the freedesktop.org specification.

Every three seconds, fdpowermon calls acpi to find out what the current battery level is. It will set the output of the acpi command as a tooltip text, and will update the used icon as appropriate.

In addition, fdpowermon can optionally call perl subroutines when the power reaches a given level. No such subroutines are provided or enabled by default, however.

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

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

sudo apt-get update

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

sudo apt-get -y install fdpowermon

Install fdpowermon Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install fdpowermon

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

sudo aptitude -y install fdpowermon

How To Uninstall fdpowermon on Ubuntu 22.04

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

sudo apt-get remove fdpowermon

Uninstall fdpowermon And Its Dependencies

To uninstall fdpowermon and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove fdpowermon

Remove fdpowermon Configurations and Data

To remove fdpowermon configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge fdpowermon

Remove fdpowermon configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge fdpowermon

References

Summary

In this tutorial we learn how to install fdpowermon package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.