How to Install or Uninstall i3blocks on Ubuntu 22.04

Updated: October 9, 2022

Status line for the i3 window manager and i3bar that handles clicks, signals and language-agnostic user scripts. In this tutorial, I will show you ways to install i3blocks Ubuntu 22.04.

Requirements

  • OS: Ubuntu 22.04 is needed for i3blocks to work
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install i3blocks on Ubuntu 22.04

Install i3blocks Ubuntu 22.04

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

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get i3blocks on your Ubuntu 22.04.

Step 1: You must update the APT package repository cache before attempting 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 update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install i3blocks Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt install i3blocks

Install i3blocks using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt install aptitude

Then, you can now install i3blocks by 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. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

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

sudo aptitude -y install i3blocks

Uninstall i3blocks on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just i3blocks.

If you installed i3blocks using APT or Aptitude, you could uninstall i3blocks on Ubuntu by following this step:

sudo apt remove --auto-remove i3blocks

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

sudo apt autoremove --purge i3blocks

Summary

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