How To Install libinput on Fedora 34

libinput is Input device library Input device library

Introduction

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

What is libinput

libinput is a library that handles input devices for display servers and other applications that need to directly deal with input devices. It provides device detection, device handling, input device event processing and abstraction so minimize the amount of custom input code the user of libinput need to provide the common set of functionality that users expect. libinput 1.18.0 2.fc34 x86_64 189 k libinput-1.18.0-2.fc34.src.rpm updates Input device library http MIT libinput is a library that handles input devices for display servers and other applications that need to directly deal with input devices. It provides device detection, device handling, input device event processing and abstraction so minimize the amount of custom input code the user of libinput need to provide the common set of functionality that users expect.

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

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

sudo dnf -y install libinput

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

sudo yum -y install libinput

How To Uninstall libinput on Fedora 34

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

sudo dnf remove libinput

libinput Package Contents on Fedora 34

/usr/bin/libinput
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/3f021e6f360a540032bd32243946a7b779c6a2
/usr/lib/.build-id/07
/usr/lib/.build-id/07/eb9a607e26fa10937784084bfb204422e20cd5
/usr/lib/.build-id/33
/usr/lib/.build-id/33/eb314c4bd96a40fe2bc8ba038d0578b318d341
/usr/lib/.build-id/55
/usr/lib/.build-id/55/7d587e0c90d728e0987d59ebd949d384fa997d
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/300252bf86cf5c1e08fe1970175ebfa8fdfec6
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/c18c3f3e125676a25659282576856960585064
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/2a946032029fa4aab8a97cde68f3ceef523952
/usr/lib/udev/libinput-device-group
/usr/lib/udev/libinput-fuzz-extract
/usr/lib/udev/libinput-fuzz-to-zero
/usr/lib/udev/rules.d/80-libinput-device-groups.rules
/usr/lib/udev/rules.d/90-libinput-fuzz-override.rules
/usr/lib64/libinput.so.10
/usr/lib64/libinput.so.10.13.0
/usr/libexec/libinput
/usr/libexec/libinput/libinput-debug-events
/usr/libexec/libinput/libinput-list-devices
/usr/share/doc/libinput
/usr/share/doc/libinput/COPYING
/usr/share/libinput/10-generic-keyboard.quirks
/usr/share/libinput/10-generic-lid.quirks
/usr/share/libinput/10-generic-trackball.quirks
/usr/share/libinput/30-vendor-aiptek.quirks
/usr/share/libinput/30-vendor-alps.quirks
/usr/share/libinput/30-vendor-contour.quirks
/usr/share/libinput/30-vendor-cypress.quirks
/usr/share/libinput/30-vendor-elantech.quirks
/usr/share/libinput/30-vendor-ibm.quirks
/usr/share/libinput/30-vendor-kensington.quirks
/usr/share/libinput/30-vendor-logitech.quirks
/usr/share/libinput/30-vendor-madcatz.quirks
/usr/share/libinput/30-vendor-microsoft.quirks
/usr/share/libinput/30-vendor-razer.quirks
/usr/share/libinput/30-vendor-synaptics.quirks
/usr/share/libinput/30-vendor-trust.quirks
/usr/share/libinput/30-vendor-vmware.quirks
/usr/share/libinput/30-vendor-wacom.quirks
/usr/share/libinput/50-system-acer.quirks
/usr/share/libinput/50-system-apple.quirks
/usr/share/libinput/50-system-asus.quirks
/usr/share/libinput/50-system-chicony.quirks
/usr/share/libinput/50-system-cyborg.quirks
/usr/share/libinput/50-system-dell.quirks
/usr/share/libinput/50-system-gigabyte.quirks
/usr/share/libinput/50-system-google.quirks
/usr/share/libinput/50-system-hp.quirks
/usr/share/libinput/50-system-huawei.quirks
/usr/share/libinput/50-system-lenovo.quirks
/usr/share/libinput/50-system-sony.quirks
/usr/share/libinput/50-system-system76.quirks
/usr/share/libinput/50-system-toshiba.quirks
/usr/share/man/man1/libinput-debug-events.1.gz
/usr/share/man/man1/libinput-list-devices.1.gz
/usr/share/man/man1/libinput.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_libinput
/usr/bin/libinput
/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/14ac93fb20e84d372a754c9a7dc8ef64619773
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/4e6b75b0933960f753069e90e75b02b3c2eda7
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/4a95770977835c2c56855b72a0e0dd657eecaf
/usr/lib/.build-id/80
/usr/lib/.build-id/80/00f88370e6397357427a90d553cc1b3b8e62e5
/usr/lib/.build-id/93
/usr/lib/.build-id/93/dbe1e48eb30f7f71ed67856164f619d6bdca2b
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/3262f0f5699ed9f6d0e9ff5b2b31ae2b2246bb
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/f80185cd5df8b3d8b9c9236b6ab1216d307217
/usr/lib/udev/libinput-device-group
/usr/lib/udev/libinput-fuzz-extract
/usr/lib/udev/libinput-fuzz-to-zero
/usr/lib/udev/rules.d/80-libinput-device-groups.rules
/usr/lib/udev/rules.d/90-libinput-fuzz-override.rules
/usr/lib64/libinput.so.10
/usr/lib64/libinput.so.10.13.0
/usr/libexec/libinput
/usr/libexec/libinput/libinput-debug-events
/usr/libexec/libinput/libinput-list-devices
/usr/share/doc/libinput
/usr/share/doc/libinput/COPYING
/usr/share/libinput/10-generic-keyboard.quirks
/usr/share/libinput/10-generic-lid.quirks
/usr/share/libinput/10-generic-trackball.quirks
/usr/share/libinput/30-vendor-aiptek.quirks
/usr/share/libinput/30-vendor-alps.quirks
/usr/share/libinput/30-vendor-contour.quirks
/usr/share/libinput/30-vendor-cypress.quirks
/usr/share/libinput/30-vendor-elantech.quirks
/usr/share/libinput/30-vendor-ibm.quirks
/usr/share/libinput/30-vendor-kensington.quirks
/usr/share/libinput/30-vendor-logitech.quirks
/usr/share/libinput/30-vendor-madcatz.quirks
/usr/share/libinput/30-vendor-microsoft.quirks
/usr/share/libinput/30-vendor-razer.quirks
/usr/share/libinput/30-vendor-synaptics.quirks
/usr/share/libinput/30-vendor-trust.quirks
/usr/share/libinput/30-vendor-vmware.quirks
/usr/share/libinput/30-vendor-wacom.quirks
/usr/share/libinput/50-system-acer.quirks
/usr/share/libinput/50-system-apple.quirks
/usr/share/libinput/50-system-asus.quirks
/usr/share/libinput/50-system-chicony.quirks
/usr/share/libinput/50-system-cyborg.quirks
/usr/share/libinput/50-system-dell.quirks
/usr/share/libinput/50-system-google.quirks
/usr/share/libinput/50-system-hp.quirks
/usr/share/libinput/50-system-lenovo.quirks
/usr/share/libinput/50-system-sony.quirks
/usr/share/libinput/50-system-system76.quirks
/usr/share/libinput/50-system-toshiba.quirks
/usr/share/man/man1/libinput-debug-events.1.gz
/usr/share/man/man1/libinput-list-devices.1.gz
/usr/share/man/man1/libinput.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_libinput
/usr/bin/libinput
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/735b0a4bc32fb46daabb1a4b1fa9307f6896fd
/usr/lib/.build-id/32
/usr/lib/.build-id/32/06a6ffc2b4f031e60c3282949c6a81940cbe15
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/d09e8b3a3beaaf57049c01b37f2fce663634dd
/usr/lib/.build-id/65
/usr/lib/.build-id/65/520362427bd70190897a3c674e0364292c7733
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/4ac46a305aba49a5a5aa035f515304ab88a44e
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/09be7edf3bc5ad30f7c7a26ca18dc806544e81
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/41261dca86a365a12cc759f9de888d0286632e
/usr/lib/libinput.so.10
/usr/lib/libinput.so.10.13.0
/usr/lib/udev/libinput-device-group
/usr/lib/udev/libinput-fuzz-extract
/usr/lib/udev/libinput-fuzz-to-zero
/usr/lib/udev/rules.d/80-libinput-device-groups.rules
/usr/lib/udev/rules.d/90-libinput-fuzz-override.rules
/usr/libexec/libinput
/usr/libexec/libinput/libinput-debug-events
/usr/libexec/libinput/libinput-list-devices
/usr/share/doc/libinput
/usr/share/doc/libinput/COPYING
/usr/share/libinput/10-generic-keyboard.quirks
/usr/share/libinput/10-generic-lid.quirks
/usr/share/libinput/10-generic-trackball.quirks
/usr/share/libinput/30-vendor-aiptek.quirks
/usr/share/libinput/30-vendor-alps.quirks
/usr/share/libinput/30-vendor-contour.quirks
/usr/share/libinput/30-vendor-cypress.quirks
/usr/share/libinput/30-vendor-elantech.quirks
/usr/share/libinput/30-vendor-ibm.quirks
/usr/share/libinput/30-vendor-kensington.quirks
/usr/share/libinput/30-vendor-logitech.quirks
/usr/share/libinput/30-vendor-madcatz.quirks
/usr/share/libinput/30-vendor-microsoft.quirks
/usr/share/libinput/30-vendor-razer.quirks
/usr/share/libinput/30-vendor-synaptics.quirks
/usr/share/libinput/30-vendor-trust.quirks
/usr/share/libinput/30-vendor-vmware.quirks
/usr/share/libinput/30-vendor-wacom.quirks
/usr/share/libinput/50-system-acer.quirks
/usr/share/libinput/50-system-apple.quirks
/usr/share/libinput/50-system-asus.quirks
/usr/share/libinput/50-system-chicony.quirks
/usr/share/libinput/50-system-cyborg.quirks
/usr/share/libinput/50-system-dell.quirks
/usr/share/libinput/50-system-gigabyte.quirks
/usr/share/libinput/50-system-google.quirks
/usr/share/libinput/50-system-hp.quirks
/usr/share/libinput/50-system-huawei.quirks
/usr/share/libinput/50-system-lenovo.quirks
/usr/share/libinput/50-system-sony.quirks
/usr/share/libinput/50-system-system76.quirks
/usr/share/libinput/50-system-toshiba.quirks
/usr/share/man/man1/libinput-debug-events.1.gz
/usr/share/man/man1/libinput-list-devices.1.gz
/usr/share/man/man1/libinput.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_libinput
/usr/bin/libinput
/usr/lib/.build-id
/usr/lib/.build-id/41
/usr/lib/.build-id/41/a008bcb6e430322881954315d458174cdba38c
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/ab0ef143250b96f391d8c6c4c8e017a695093e
/usr/lib/.build-id/99
/usr/lib/.build-id/99/3aef77182c9fd16535a5cc2a8b4ed87966b213
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/1925dc6845c1cf88aa25c5a737dd00e5e74a82
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/1e6fe996a42348052defa417f25bd219c2b434
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/376e2f038f064755e3e2c352a087790aa16057
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/71b75d8336d2fbed939539dd77af0ec1097469
/usr/lib/libinput.so.10
/usr/lib/libinput.so.10.13.0
/usr/lib/udev/libinput-device-group
/usr/lib/udev/libinput-fuzz-extract
/usr/lib/udev/libinput-fuzz-to-zero
/usr/lib/udev/rules.d/80-libinput-device-groups.rules
/usr/lib/udev/rules.d/90-libinput-fuzz-override.rules
/usr/libexec/libinput
/usr/libexec/libinput/libinput-debug-events
/usr/libexec/libinput/libinput-list-devices
/usr/share/doc/libinput
/usr/share/doc/libinput/COPYING
/usr/share/libinput/10-generic-keyboard.quirks
/usr/share/libinput/10-generic-lid.quirks
/usr/share/libinput/10-generic-trackball.quirks
/usr/share/libinput/30-vendor-aiptek.quirks
/usr/share/libinput/30-vendor-alps.quirks
/usr/share/libinput/30-vendor-contour.quirks
/usr/share/libinput/30-vendor-cypress.quirks
/usr/share/libinput/30-vendor-elantech.quirks
/usr/share/libinput/30-vendor-ibm.quirks
/usr/share/libinput/30-vendor-kensington.quirks
/usr/share/libinput/30-vendor-logitech.quirks
/usr/share/libinput/30-vendor-madcatz.quirks
/usr/share/libinput/30-vendor-microsoft.quirks
/usr/share/libinput/30-vendor-razer.quirks
/usr/share/libinput/30-vendor-synaptics.quirks
/usr/share/libinput/30-vendor-trust.quirks
/usr/share/libinput/30-vendor-vmware.quirks
/usr/share/libinput/30-vendor-wacom.quirks
/usr/share/libinput/50-system-acer.quirks
/usr/share/libinput/50-system-apple.quirks
/usr/share/libinput/50-system-asus.quirks
/usr/share/libinput/50-system-chicony.quirks
/usr/share/libinput/50-system-cyborg.quirks
/usr/share/libinput/50-system-dell.quirks
/usr/share/libinput/50-system-google.quirks
/usr/share/libinput/50-system-hp.quirks
/usr/share/libinput/50-system-lenovo.quirks
/usr/share/libinput/50-system-sony.quirks
/usr/share/libinput/50-system-system76.quirks
/usr/share/libinput/50-system-toshiba.quirks
/usr/share/man/man1/libinput-debug-events.1.gz
/usr/share/man/man1/libinput-list-devices.1.gz
/usr/share/man/man1/libinput.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_libinput

References

Summary

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