How To Install python2-cairo-devel on Rocky Linux 8

In this tutorial we learn how to install python2-cairo-devel on Rocky Linux 8. python2-cairo-devel is Libraries and headers for py2cairo

Introduction

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

What is python2-cairo-devel

This package contains files required to build wrappers for cairo add-on libraries so that they interoperate with py2cairo.

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

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

sudo dnf -y install python2-cairo-devel

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

sudo yum -y install python2-cairo-devel

How To Uninstall python2-cairo-devel on Rocky Linux 8

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

sudo dnf remove python2-cairo-devel

python2-cairo-devel Package Contents on Rocky Linux 8

/usr/include/pycairo
/usr/include/pycairo/pycairo.h
/usr/lib64/pkgconfig/pycairo.pc

References

Summary

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