How To Install python3-xlib on Rocky Linux 8

In this tutorial we learn how to install python3-xlib on Rocky Linux 8. python3-xlib is X client library for Python 3

Introduction

In this tutorial we learn how to install python3-xlib on Rocky Linux 8.

What is python3-xlib

The Python X Library is a complete X11R6 client-side implementation, written in pure Python. It can be used to write low-levelish X Windows client applications in Python 3.

We can use yum or dnf to install python3-xlib on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-xlib.

Install python3-xlib on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-xlib using dnf by running the following command:

sudo dnf -y install python3-xlib

Install python3-xlib on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-xlib using yum by running the following command:

sudo yum -y install python3-xlib

How To Uninstall python3-xlib on Rocky Linux 8

To uninstall only the python3-xlib package we can use the following command:

sudo dnf remove python3-xlib

python3-xlib Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/Xlib
/usr/lib/python3.6/site-packages/Xlib/X.py
/usr/lib/python3.6/site-packages/Xlib/XK.py
/usr/lib/python3.6/site-packages/Xlib/Xatom.py
/usr/lib/python3.6/site-packages/Xlib/Xcursorfont.py
/usr/lib/python3.6/site-packages/Xlib/Xutil.py
/usr/lib/python3.6/site-packages/Xlib/__init__.py
/usr/lib/python3.6/site-packages/Xlib/__pycache__
/usr/lib/python3.6/site-packages/Xlib/__pycache__/X.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/X.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/XK.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/XK.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/Xatom.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/Xatom.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/Xcursorfont.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/Xcursorfont.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/Xutil.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/Xutil.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/display.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/display.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/error.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/error.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/rdb.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/rdb.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/threaded.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/threaded.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/xauth.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/__pycache__/xauth.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/display.py
/usr/lib/python3.6/site-packages/Xlib/error.py
/usr/lib/python3.6/site-packages/Xlib/ext
/usr/lib/python3.6/site-packages/Xlib/ext/__init__.py
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/composite.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/composite.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/damage.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/damage.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/ge.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/ge.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/nvcontrol.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/nvcontrol.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/randr.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/randr.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/record.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/record.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/security.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/security.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/shape.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/shape.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/xfixes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/xfixes.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/xinerama.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/xinerama.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/xinput.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/xinput.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/xtest.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/__pycache__/xtest.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/ext/composite.py
/usr/lib/python3.6/site-packages/Xlib/ext/damage.py
/usr/lib/python3.6/site-packages/Xlib/ext/ge.py
/usr/lib/python3.6/site-packages/Xlib/ext/nvcontrol.py
/usr/lib/python3.6/site-packages/Xlib/ext/randr.py
/usr/lib/python3.6/site-packages/Xlib/ext/record.py
/usr/lib/python3.6/site-packages/Xlib/ext/security.py
/usr/lib/python3.6/site-packages/Xlib/ext/shape.py
/usr/lib/python3.6/site-packages/Xlib/ext/xfixes.py
/usr/lib/python3.6/site-packages/Xlib/ext/xinerama.py
/usr/lib/python3.6/site-packages/Xlib/ext/xinput.py
/usr/lib/python3.6/site-packages/Xlib/ext/xtest.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__init__.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/apl.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/apl.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/arabic.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/arabic.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/cyrillic.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/cyrillic.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/greek.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/greek.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/hebrew.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/hebrew.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/katakana.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/katakana.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/korean.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/korean.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/latin1.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/latin1.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/latin2.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/latin2.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/latin3.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/latin3.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/latin4.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/latin4.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/miscellany.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/miscellany.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/publishing.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/publishing.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/special.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/special.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/technical.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/technical.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/thai.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/thai.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/xf86.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/xf86.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/xk3270.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/xk3270.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/xkb.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/__pycache__/xkb.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/keysymdef/apl.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/arabic.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/cyrillic.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/greek.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/hebrew.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/katakana.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/korean.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/latin1.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/latin2.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/latin3.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/latin4.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/miscellany.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/publishing.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/special.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/technical.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/thai.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/xf86.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/xk3270.py
/usr/lib/python3.6/site-packages/Xlib/keysymdef/xkb.py
/usr/lib/python3.6/site-packages/Xlib/protocol
/usr/lib/python3.6/site-packages/Xlib/protocol/__init__.py
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/display.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/display.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/event.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/event.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/request.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/request.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/rq.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/rq.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/structs.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/__pycache__/structs.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/protocol/display.py
/usr/lib/python3.6/site-packages/Xlib/protocol/event.py
/usr/lib/python3.6/site-packages/Xlib/protocol/request.py
/usr/lib/python3.6/site-packages/Xlib/protocol/rq.py
/usr/lib/python3.6/site-packages/Xlib/protocol/structs.py
/usr/lib/python3.6/site-packages/Xlib/rdb.py
/usr/lib/python3.6/site-packages/Xlib/support
/usr/lib/python3.6/site-packages/Xlib/support/__init__.py
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/connect.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/connect.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/lock.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/lock.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/unix_connect.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/unix_connect.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/vms_connect.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/support/__pycache__/vms_connect.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/support/connect.py
/usr/lib/python3.6/site-packages/Xlib/support/lock.py
/usr/lib/python3.6/site-packages/Xlib/support/unix_connect.py
/usr/lib/python3.6/site-packages/Xlib/support/vms_connect.py
/usr/lib/python3.6/site-packages/Xlib/threaded.py
/usr/lib/python3.6/site-packages/Xlib/xauth.py
/usr/lib/python3.6/site-packages/Xlib/xobject
/usr/lib/python3.6/site-packages/Xlib/xobject/__init__.py
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/colormap.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/colormap.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/cursor.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/cursor.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/drawable.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/drawable.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/fontable.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/fontable.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/icccm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/icccm.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/resource.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/__pycache__/resource.cpython-36.pyc
/usr/lib/python3.6/site-packages/Xlib/xobject/colormap.py
/usr/lib/python3.6/site-packages/Xlib/xobject/cursor.py
/usr/lib/python3.6/site-packages/Xlib/xobject/drawable.py
/usr/lib/python3.6/site-packages/Xlib/xobject/fontable.py
/usr/lib/python3.6/site-packages/Xlib/xobject/icccm.py
/usr/lib/python3.6/site-packages/Xlib/xobject/resource.py
/usr/lib/python3.6/site-packages/python_xlib-0.26-py3.6.egg-info
/usr/lib/python3.6/site-packages/python_xlib-0.26-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/python_xlib-0.26-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/python_xlib-0.26-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/python_xlib-0.26-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/python_xlib-0.26-py3.6.egg-info/top_level.txt
/usr/share/doc/python3-xlib
/usr/share/doc/python3-xlib/CHANGELOG.md
/usr/share/doc/python3-xlib/README.rst
/usr/share/doc/python3-xlib/TODO
/usr/share/licenses/python3-xlib
/usr/share/licenses/python3-xlib/LICENSE

References

Summary

In this tutorial we learn how to install python3-xlib on Rocky Linux 8 using yum and dnf.