How To Install xkb-switch on Fedora 36

In this tutorial we learn how to install xkb-switch in Fedora 36. xkb-switch is Switch your X keyboard layouts from the command line

Introduction

In this tutorial we learn how to install xkb-switch on Fedora 36.

What is xkb-switch

xkb-switch is a C++ program that allows to query and change the XKB layout state.

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

Install xkb-switch 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 xkb-switch using dnf by running the following command:

sudo dnf -y install xkb-switch

Install xkb-switch 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 xkb-switch using yum by running the following command:

sudo yum -y install xkb-switch

How To Uninstall xkb-switch on Fedora 36

To uninstall only the xkb-switch package we can use the following command:

sudo dnf remove xkb-switch

xkb-switch Package Contents on Fedora 36

/usr/bin/xkb-switch
/usr/lib/.build-id
/usr/lib/.build-id/af
/usr/lib/.build-id/af/0595a3d09dd2fe06fb24ab3bb9f4e4ebb7d3b2
/usr/share/doc/xkb-switch
/usr/share/doc/xkb-switch/README.md
/usr/share/licenses/xkb-switch
/usr/share/licenses/xkb-switch/COPYING
/usr/share/man/man1/xkb-switch.1.gz
/usr/share/man/man1/xkb-switch.1.gzip.gz

References

Summary

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