How To Install ydotool on Fedora 34

ydotool is Generic command-line automation tool (no X!)

Introduction

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

What is ydotool

Performs some of the functions of xdotool(1) without requiring X11 - however, it generally requires root permission (to open /dev/uinput) NOTE NOTE NOTE NOTE NOTE NOTE SEE Currently implemented command(s) - type - Type a string - key - Press keys - mousemove - Move mouse pointer to absolute position - click - Click on mouse buttons - recorder - Record/replay input events - sleep - sleep ms N.B. it is strongly recommended to start the ydotoold daemon with - systemctl enable ydotool - systemctl start ydotool

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

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

sudo dnf -y install ydotool

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

sudo yum -y install ydotool

How To Uninstall ydotool on Fedora 34

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

sudo dnf remove ydotool

ydotool Package Contents on Fedora 34

/usr/bin/ydotool
/usr/bin/ydotoold
/usr/lib/.build-id
/usr/lib/.build-id/38
/usr/lib/.build-id/38/c778d532429a25748a1c1c74c62afa7922f225
/usr/lib/.build-id/69
/usr/lib/.build-id/69/31dd9811a3f4c288bfd70a4e8cc448d03ef01f
/usr/lib/systemd/system/ydotool.service
/usr/share/doc/ydotool
/usr/share/doc/ydotool/README.md
/usr/share/licenses/ydotool
/usr/share/licenses/ydotool/LICENSE
/usr/share/man/man1/ydotool.1.gz
/usr/share/man/man8/ydotoold.8.gz
/usr/bin/ydotool
/usr/bin/ydotoold
/usr/lib/.build-id
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/d9bb67b1d652a77af2221971b4b6a9f178295f
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/b0f49e92536c582479e8295147160051edd730
/usr/lib/systemd/system/ydotool.service
/usr/share/doc/ydotool
/usr/share/doc/ydotool/README.md
/usr/share/licenses/ydotool
/usr/share/licenses/ydotool/LICENSE
/usr/share/man/man1/ydotool.1.gz
/usr/share/man/man8/ydotoold.8.gz

References

Summary

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