How To Install gnome-battery-bench on CentOS 7

In this tutorial we learn how to install gnome-battery-bench on CentOS 7. gnome-battery-bench is Measure power usage in defined scenarios

Introduction

In this tutorial we learn how to install gnome-battery-bench on CentOS 7.

What is gnome-battery-bench

This application is designed for measuring power usage. It does it by recording the reported battery statistics as it replays recorded event logs, and then using that to estimate power consumption and total battery lifetime.

We can use yum or dnf to install gnome-battery-bench on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install gnome-battery-bench.

Install gnome-battery-bench on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install gnome-battery-bench using yum by running the following command:

sudo yum -y install gnome-battery-bench

Install gnome-battery-bench on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install gnome-battery-bench using dnf by running the following command:

sudo dnf -y install gnome-battery-bench

How To Uninstall gnome-battery-bench on CentOS 7

To uninstall only the gnome-battery-bench package we can use the following command:

sudo dnf remove gnome-battery-bench

References

Summary

In this tutorial we learn how to install gnome-battery-bench on CentOS 7 using yum and dnf.