sway (SirCmpwn’s Wayland compositor) is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3 configuration and supports most of i3’s features, plus a few extras. This means it is a minimalist, tiling window manager. In this guide, I will show you how to install sway on Ubuntu 22.04.
Requirements to install
- OS: Ubuntu 22.04 or older versions with more than 2GB RAM
- Privileges: Ensure that you are able to execute the sudo commands line.
Install sway Ubuntu 22.04
sway 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 sway 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 sway 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 this Linux command:
Step 2: Install the package on Ubuntu 22.04. You can now install sway Ubuntu by executing this command in the terminal.
Install sway 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.
After installing it, you can now install sway, just following these steps:
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. Opening the terminal and executing this Linux command:
Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install sway Ubuntu by executing this command in the terminal.
Uninstall sway on Ubuntu 22.04
Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a sway.
If you installed sway using APT or Aptitude, you could uninstall sway on Ubuntu by executing this command
You can also execute this command if you want to uninstall sway and remove its data and dependencies:
In this tutorial, I showed you ways to install sway on Ubuntu 22.04 and ways to uninstall sway too. Please contact me if you require any assistance. I’d be delighted to respond.