How To Install python3-xcffib on Fedora 36

In this tutorial we learn how to install python3-xcffib in Fedora 36. python3-xcffib is A drop in replacement for xpyb, an XCB python binding

Introduction

In this tutorial we learn how to install python3-xcffib on Fedora 36.

What is python3-xcffib

xcffib is intended to be a (mostly) drop-in replacement for xpyb. xpyb has an inactive upstream, several memory leaks, is python2 only and doesn’t have pypy support. xcffib is a binding which uses cffi, which mitigates some of the issues described above. xcffib also builds bindings for 27 of the 29 (xprint and xkb are missing) X extensions in 1.10.

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

Install python3-xcffib on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-xcffib

Install python3-xcffib on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-xcffib

How To Uninstall python3-xcffib on Fedora 36

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

sudo dnf remove python3-xcffib

python3-xcffib Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/xcffib
/usr/lib/python3.10/site-packages/xcffib-0.11.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/xcffib-0.11.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/xcffib-0.11.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/xcffib-0.11.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/xcffib-0.11.1-py3.10.egg-info/not-zip-safe
/usr/lib/python3.10/site-packages/xcffib-0.11.1-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/xcffib-0.11.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/xcffib/__init__.py
/usr/lib/python3.10/site-packages/xcffib/__pycache__
/usr/lib/python3.10/site-packages/xcffib/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/_ffi.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/_ffi.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/bigreq.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/bigreq.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/composite.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/composite.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/damage.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/damage.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/dpms.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/dpms.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/dri2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/dri2.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/dri3.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/dri3.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/ffi_build.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/ffi_build.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/ge.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/ge.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/glx.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/glx.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/present.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/present.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/randr.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/randr.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/record.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/record.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/render.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/render.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/res.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/res.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/screensaver.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/screensaver.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/shape.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/shape.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/shm.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/shm.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/sync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/sync.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/testing.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/testing.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/wrappers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/wrappers.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xc_misc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xc_misc.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xevie.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xevie.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xf86dri.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xf86dri.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xf86vidmode.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xf86vidmode.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xfixes.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xfixes.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xinerama.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xinerama.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xinput.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xinput.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xproto.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xproto.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xselinux.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xselinux.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xtest.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xtest.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xv.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xv.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xvmc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/xcffib/__pycache__/xvmc.cpython-310.pyc
/usr/lib/python3.10/site-packages/xcffib/_ffi.py
/usr/lib/python3.10/site-packages/xcffib/bigreq.py
/usr/lib/python3.10/site-packages/xcffib/composite.py
/usr/lib/python3.10/site-packages/xcffib/damage.py
/usr/lib/python3.10/site-packages/xcffib/dpms.py
/usr/lib/python3.10/site-packages/xcffib/dri2.py
/usr/lib/python3.10/site-packages/xcffib/dri3.py
/usr/lib/python3.10/site-packages/xcffib/ffi_build.py
/usr/lib/python3.10/site-packages/xcffib/ge.py
/usr/lib/python3.10/site-packages/xcffib/glx.py
/usr/lib/python3.10/site-packages/xcffib/present.py
/usr/lib/python3.10/site-packages/xcffib/py.typed
/usr/lib/python3.10/site-packages/xcffib/randr.py
/usr/lib/python3.10/site-packages/xcffib/record.py
/usr/lib/python3.10/site-packages/xcffib/render.py
/usr/lib/python3.10/site-packages/xcffib/res.py
/usr/lib/python3.10/site-packages/xcffib/screensaver.py
/usr/lib/python3.10/site-packages/xcffib/shape.py
/usr/lib/python3.10/site-packages/xcffib/shm.py
/usr/lib/python3.10/site-packages/xcffib/sync.py
/usr/lib/python3.10/site-packages/xcffib/testing.py
/usr/lib/python3.10/site-packages/xcffib/wrappers.py
/usr/lib/python3.10/site-packages/xcffib/xc_misc.py
/usr/lib/python3.10/site-packages/xcffib/xevie.py
/usr/lib/python3.10/site-packages/xcffib/xf86dri.py
/usr/lib/python3.10/site-packages/xcffib/xf86vidmode.py
/usr/lib/python3.10/site-packages/xcffib/xfixes.py
/usr/lib/python3.10/site-packages/xcffib/xinerama.py
/usr/lib/python3.10/site-packages/xcffib/xinput.py
/usr/lib/python3.10/site-packages/xcffib/xproto.py
/usr/lib/python3.10/site-packages/xcffib/xselinux.py
/usr/lib/python3.10/site-packages/xcffib/xtest.py
/usr/lib/python3.10/site-packages/xcffib/xv.py
/usr/lib/python3.10/site-packages/xcffib/xvmc.py
/usr/share/doc/python3-xcffib
/usr/share/doc/python3-xcffib/LICENSE
/usr/share/doc/python3-xcffib/README.md

References

Summary

In this tutorial we learn how to install python3-xcffib on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).