How To Install xautomation on Fedora 34

xautomation is Tools to automate tasks in X, even detecting on screen images

Introduction

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

What is xautomation

Control X from the command line for scripts, and do “visual scraping” to find things on the screen. The control interface allows mouse movement, clicking, button up/down, key up/down, etc, and uses the XTest extension so you don’t have the annoying problems that xse has when apps ignore sent events. The visgrep program find images inside of images and reports the coordinates, allowing programs to find buttons, etc, on the screen to click on.

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

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

sudo dnf -y install xautomation

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

sudo yum -y install xautomation

How To Uninstall xautomation on Fedora 34

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

sudo dnf remove xautomation

xautomation Package Contents on Fedora 34

/usr/bin/pat2ppm
/usr/bin/patextract
/usr/bin/png2pat
/usr/bin/rgb2pat
/usr/bin/visgrep
/usr/bin/xmousepos
/usr/bin/xte
/usr/lib/.build-id
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/1282dfc543c79f39a5e878704710344f4140f5
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/70f82e4a84af9a508810a7560a00d5e3e39de3
/usr/lib/.build-id/73
/usr/lib/.build-id/73/fb76eade837973104925d3bdd7afb689628b4b
/usr/lib/.build-id/90
/usr/lib/.build-id/90/324d06cf60450003ea6135bcf5930d976e9904
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/6832fc01ef20d372d9e7c50782de712b649218
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/9b7fbdda6ad058834cc3ef86c4495e6beb898b
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/7b054f5a14203e5709bca6d7cef92d19d3ce63
/usr/share/doc/xautomation
/usr/share/doc/xautomation/AUTHORS
/usr/share/doc/xautomation/README
/usr/share/licenses/xautomation
/usr/share/licenses/xautomation/COPYING
/usr/share/man/man1/pat2ppm.1.gz
/usr/share/man/man1/patextract.1.gz
/usr/share/man/man1/png2pat.1.gz
/usr/share/man/man1/rgb2pat.1.gz
/usr/share/man/man1/visgrep.1.gz
/usr/share/man/man1/xmousepos.1.gz
/usr/share/man/man1/xte.1.gz
/usr/share/man/man7/xautomation.7.gz

References

Summary

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