How To Install python2-cairo on Rocky Linux 8

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

Introduction

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

What is python2-cairo

Python 2 bindings for the cairo library.

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

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

sudo dnf -y install python2-cairo

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

sudo yum -y install python2-cairo

How To Uninstall python2-cairo on Rocky Linux 8

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

sudo dnf remove python2-cairo

python2-cairo Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/ead8e12fe91e3b2cacc2772b1886fd230f050f
/usr/lib64/python2.7/site-packages/cairo
/usr/lib64/python2.7/site-packages/cairo/__init__.py
/usr/lib64/python2.7/site-packages/cairo/__init__.pyc
/usr/lib64/python2.7/site-packages/cairo/__init__.pyi
/usr/lib64/python2.7/site-packages/cairo/__init__.pyo
/usr/lib64/python2.7/site-packages/cairo/_cairo.so
/usr/lib64/python2.7/site-packages/cairo/include
/usr/lib64/python2.7/site-packages/cairo/include/pycairo.h
/usr/lib64/python2.7/site-packages/pycairo-1.16.3-py2.7.egg-info
/usr/share/licenses/python2-cairo
/usr/share/licenses/python2-cairo/COPYING
/usr/share/licenses/python2-cairo/COPYING-LGPL-2.1
/usr/share/licenses/python2-cairo/COPYING-MPL-1.1

References

Summary

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