How to Install or Uninstall waybar on Ubuntu 22.04

Updated: October 10, 2022

Waybar is a highly customizable wayland bar for Sway and Wlroots based compositors. It features applets displaying information about Sway (Workspaces, Binding mode, Focused window name), Local time, Battery, Network, Pulseaudio, Memory, Cpu load average and custom scripts In this guide, I will show you ways to install waybar Ubuntu 22.04.

Prerequisites

  • OS: Ubuntu 22.04 is needed for waybar to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install waybar on Ubuntu 22.04

Install waybar Ubuntu 22.04

waybar is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install waybar 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 install waybar on your Ubuntu.

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 download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. You can now install waybar Ubuntu by executing this command in the terminal.

sudo apt -y install waybar

Install waybar using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get install aptitude

Then, you can now install waybar, 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 download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install waybar Ubuntu by executing this command in the terminal.

sudo aptitude -y install waybar

Uninstall waybar 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 waybar, can be easily uninstalled by anyone.

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

sudo apt remove --auto-remove waybar

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

sudo apt autoremove --purge waybar

Conclusion

In this tutorial, I showed you ways to install waybar on Ubuntu 22.04 and ways to uninstall waybar too. Please contact me if you require any assistance. I’d be delighted to respond.