How To Install sway on Fedora 34
Introduction
In this tutorial we learn how to install sway
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install sway.
Install sway on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install sway
using dnf
by running the following command:
sudo dnf -y install sway
Install sway on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the sway
package we can use the following command:
sudo dnf remove sway
sway Package Contents on Fedora 34
/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/00
/usr/lib/.build-id/00/3e38b212330236080b97fb60c1980241b76a0e
/usr/lib/.build-id/44
/usr/lib/.build-id/44/aa38d74d7135ca48838077d98c86cac97c74b7
/usr/lib/.build-id/79
/usr/lib/.build-id/79/17986ca942adeb007b73086aba0f8694f52fa6
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/5d722454a64e9c45fadec2c433a60ca6248b45
/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/wayland-sessions/sway.desktop
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_sway
/usr/share/zsh/site-functions/_swaymsg
/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/31
/usr/lib/.build-id/31/dfe9986b2bb27bbdcfef0efb865a4b6af7afa8
/usr/lib/.build-id/38
/usr/lib/.build-id/38/f8be3956bb0ab6aecb6a09e4afef3f4189fbb3
/usr/lib/.build-id/90
/usr/lib/.build-id/90/cc2d00920c95de4a15731a7fc833f11c0d3b54
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/3cc501abc742f97f28301fbdb76fe98d1e33da
/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/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 34 using yum and dnf.