How to Install and Uninstall herbstluftwm on Ubuntu 22.04

Updated: September 3, 2022

In herbstluftwm the layout is based on splitting frames into subframes which can be split again or can be filled with windows, Tags (or workspaces or virtual desktops or …) can be added/removed at runtime. Each tag contains an own layout and exactly one tag is viewed on each monitor. The tags are monitor independent. I will show you how to install herbstluftwm on Ubuntu 22.04 in this tutorial.

Prerequisites

  • Operating system: Ubuntu 22.04 is needed for herbstluftwm to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install herbstluftwm on Ubuntu 22.04

Install herbstluftwm Ubuntu 22.04

herbstluftwm 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 herbstluftwm using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to get herbstluftwm on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install herbstluftwm Ubuntu by executing this command in the terminal.

sudo apt-get -y install herbstluftwm

Install herbstluftwm 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. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

After that, you can now install herbstluftwm by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

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

sudo aptitude -y install herbstluftwm

Uninstall herbstluftwm on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

You can uninstall herbstluftwm Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove herbstluftwm

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

sudo apt autoremove --purge herbstluftwm

Summary

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