How to Uninstall and Install wmbattery on Ubuntu 22.04

Updated: October 10, 2022

wmbattery displays the status of your laptop’s battery in a small icon. This includes if it is plugged in, if the battery is charging, how many minutes of battery life remain, and battery status (high - green, low - yellow, or critical - red). In this guide, I will show you ways to install wmbattery Ubuntu 22.04.

Software Requirement

  • OS: Ubuntu 22.04 is needed for wmbattery to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install wmbattery on Ubuntu 22.04

Install wmbattery Ubuntu 22.04

wmbattery is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install wmbattery using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get wmbattery on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install wmbattery Ubuntu by pasting this command into the terminal and executing it.

sudo apt-get install wmbattery

Install wmbattery using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get install aptitude

After installing, you can now install wmbattery, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. You can now install wmbattery Ubuntu by executing this command in the terminal.

sudo aptitude -y install wmbattery

Uninstall wmbattery on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a wmbattery, can be easily uninstalled by anyone.

If you installed wmbattery using APT or Aptitude, you could uninstall wmbattery on Ubuntu by running this command

sudo apt remove --auto-remove wmbattery

To uninstall wmbattery and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge wmbattery

Summary

In this tutorial, I showed you ways to install wmbattery on Ubuntu 22.04 and ways to uninstall wmbattery too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.