Ways to Uninstall or Install swaybg on Ubuntu 22.04

Updated: October 10, 2022

swaybg is a wallpaper utility for Wayland compositors. It is compatible with any Wayland compositor which implements the following Wayland protocols: wlr-layer-shell, xdg-output, xdg-shell In this guide, I will show you ways to install swaybg Ubuntu 22.04.


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

Prerequisites to install swaybg on Ubuntu 22.04

Install swaybg Ubuntu 22.04

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

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these steps to install swaybg on your Ubuntu.

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. Launching the terminal and entering the following Linux command:

sudo apt-get update

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

sudo apt-get -y install swaybg

Install swaybg 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

After installing aptitude, you can now install swaybg by following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install swaybg Ubuntu by executing this command in the terminal.

sudo aptitude -y install swaybg

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

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

sudo apt remove --auto-remove swaybg

If you want to uninstall swaybg and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge swaybg


In this tutorial, I showed you ways to install swaybg on Ubuntu 22.04 and ways to uninstall swaybg too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.