How To Install xmodmap on Fedora 34

xmodmap is Edit and display the X11 core keyboard map

Introduction

In this tutorial we learn how to install xmodmap on Fedora 34.

What is xmodmap

The xmodmap program is used to edit and display the keyboard modifier map and keymap table that are used by client applications to convert event keycodes into keysyms.

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

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

sudo dnf -y install xmodmap

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

sudo yum -y install xmodmap

How To Uninstall xmodmap on Fedora 34

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

sudo dnf remove xmodmap

xmodmap Package Contents on Fedora 34

/usr/bin/xmodmap
/usr/lib/.build-id
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/80ad474083aa21ff6532ac4756a2fa2bb5105d
/usr/share/licenses/xmodmap
/usr/share/licenses/xmodmap/COPYING
/usr/share/man/man1/xmodmap.1.gz
/usr/bin/xmodmap
/usr/lib/.build-id
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/03bab34dc146a963295286f3d6d9215c76db64
/usr/share/licenses/xmodmap
/usr/share/licenses/xmodmap/COPYING
/usr/share/man/man1/xmodmap.1.gz

References

Summary

In this tutorial we learn how to install xmodmap on Fedora 34 using yum and dnf.