How To Install python3-cairo on Rocky Linux 8

In this tutorial we learn how to install python3-cairo on Rocky Linux 8. python3-cairo is Python 3 bindings for the cairo library

Introduction

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

What is python3-cairo

Python 3 bindings for the cairo library.

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

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

sudo dnf -y install python3-cairo

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

sudo yum -y install python3-cairo

How To Uninstall python3-cairo on Rocky Linux 8

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

sudo dnf remove python3-cairo

python3-cairo Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/78
/usr/lib/.build-id/78/6d930e8c99d5caaa543d49746ad9fcf6b408f9
/usr/lib64/python3.6/site-packages/cairo
/usr/lib64/python3.6/site-packages/cairo/__init__.py
/usr/lib64/python3.6/site-packages/cairo/__init__.pyi
/usr/lib64/python3.6/site-packages/cairo/__pycache__
/usr/lib64/python3.6/site-packages/cairo/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/cairo/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/cairo/_cairo.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/cairo/include
/usr/lib64/python3.6/site-packages/cairo/include/py3cairo.h
/usr/lib64/python3.6/site-packages/pycairo-1.16.3-py3.6.egg-info
/usr/share/licenses/python3-cairo
/usr/share/licenses/python3-cairo/COPYING
/usr/share/licenses/python3-cairo/COPYING-LGPL-2.1
/usr/share/licenses/python3-cairo/COPYING-MPL-1.1
/usr/lib/.build-id
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/09e8d047c09f8c0c21021e3d75d28b44a821cb
/usr/lib/python3.6/site-packages/cairo
/usr/lib/python3.6/site-packages/cairo/__init__.py
/usr/lib/python3.6/site-packages/cairo/__init__.pyi
/usr/lib/python3.6/site-packages/cairo/__pycache__
/usr/lib/python3.6/site-packages/cairo/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cairo/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/cairo/_cairo.cpython-36m-i386-linux-gnu.so
/usr/lib/python3.6/site-packages/cairo/include
/usr/lib/python3.6/site-packages/cairo/include/py3cairo.h
/usr/lib/python3.6/site-packages/pycairo-1.16.3-py3.6.egg-info
/usr/share/licenses/python3-cairo
/usr/share/licenses/python3-cairo/COPYING
/usr/share/licenses/python3-cairo/COPYING-LGPL-2.1
/usr/share/licenses/python3-cairo/COPYING-MPL-1.1

References

Summary

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