How To Install sway on Fedora 36

In this tutorial we learn how to install sway in Fedora 36. sway is i3-compatible window manager for Wayland

Introduction

In this tutorial we learn how to install sway on Fedora 36.

What is sway

Sway is a tiling window manager supporting Wayland compositor protocol and i3-compatible configuration.

We can use yum or dnf to install sway on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install sway.

Install sway on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install sway using dnf by running the following command:

sudo dnf -y install sway

Install sway on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install sway using yum by running the following command:

sudo yum -y install sway

How To Uninstall sway on Fedora 36

To uninstall only the sway package we can use the following command:

sudo dnf remove sway

sway Package Contents on Fedora 36

/etc/sway
/etc/sway/config
/etc/sway/config.d
/usr/bin/sway
/usr/bin/swaybar
/usr/bin/swaymsg
/usr/bin/swaynag
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/e78fced93f44651ac4c36360027e8dfa1a40ec
/usr/lib/.build-id/27
/usr/lib/.build-id/27/143cabf44b3008fec224c464b25014c96364c7
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/0570296758572aade60b93b4bc2cc067213f3f
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/64ef683bb7ad62cd97d05fa19daac331c0259c
/usr/share/backgrounds/sway
/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1136x640.png
/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1136x640_Portrait.png
/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1366x768.png
/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png
/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_2048x1536.png
/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_2048x1536_Portrait.png
/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_768x1024.png
/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_768x1024_Portrait.png
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/sway
/usr/share/bash-completion/completions/swaybar
/usr/share/bash-completion/completions/swaymsg
/usr/share/doc/sway
/usr/share/doc/sway/README.md
/usr/share/fish
/usr/share/fish/vendor_completions.d
/usr/share/fish/vendor_completions.d/sway.fish
/usr/share/fish/vendor_completions.d/swaymsg.fish
/usr/share/fish/vendor_completions.d/swaynag.fish
/usr/share/licenses/sway
/usr/share/licenses/sway/LICENSE
/usr/share/man/man1/sway.1.gz
/usr/share/man/man1/swaymsg.1.gz
/usr/share/man/man1/swaynag.1.gz
/usr/share/man/man5/sway-bar.5.gz
/usr/share/man/man5/sway-input.5.gz
/usr/share/man/man5/sway-output.5.gz
/usr/share/man/man5/sway.5.gz
/usr/share/man/man5/swaynag.5.gz
/usr/share/man/man7/sway-ipc.7.gz
/usr/share/man/man7/swaybar-protocol.7.gz
/usr/share/sway
/usr/share/sway/contrib
/usr/share/sway/contrib/autoname-workspaces.py
/usr/share/sway/contrib/inactive-windows-transparency.py
/usr/share/wayland-sessions/sway.desktop
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_sway
/usr/share/zsh/site-functions/_swaymsg

References

Summary

In this tutorial we learn how to install sway on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).