How To Install xfce4-battery-plugin on Debian 9

In this tutorial we learn how to install xfce4-battery-plugin on Debian 9. xfce4-battery-plugin is battery monitor plugin for the Xfce4 panel

Introduction

In this tutorial we learn how to install xfce4-battery-plugin on Debian 9.

What is xfce4-battery-plugin

xfce4-battery-plugin is:

A battery monitor panel plugin for Xfce4, compatible with APM and ACPI, using either /proc files or the new sysfs files for recent kernels. You can use this applet to monitor your battery level and be notified when your battery reaches low and critcal levels. The applet can even be programmed to execute a command on low and critcal levels.

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

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

sudo apt-get update

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

sudo apt-get -y install xfce4-battery-plugin

Install xfce4-battery-plugin Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xfce4-battery-plugin using apt by running the following command:

sudo apt -y install xfce4-battery-plugin

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

sudo aptitude -y install xfce4-battery-plugin

How To Uninstall xfce4-battery-plugin on Debian 9

To uninstall only the xfce4-battery-plugin package we can use the following command:

sudo apt-get remove xfce4-battery-plugin

Uninstall xfce4-battery-plugin And Its Dependencies

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

sudo apt-get -y autoremove xfce4-battery-plugin

Remove xfce4-battery-plugin Configurations and Data

To remove xfce4-battery-plugin configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge xfce4-battery-plugin

Remove xfce4-battery-plugin configuration, data, and all of its dependencies

We can use the following command to remove xfce4-battery-plugin configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xfce4-battery-plugin

Dependencies

xfce4-battery-plugin have the following dependencies:

References

Summary

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