How To Install pycairo.x86_64 on Amazon Linux 2

In this tutorial we learn how to install pycairo.x86_64 in Amazon Linux 2. pycairo.x86_64 is Python bindings for the cairo library

Introduction

In this tutorial we learn how to install pycairo.x86_64 on Amazon Linux 2.

What is pycairo.x86_64

Python bindings for the cairo library.

We can use yum to install pycairo.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install pycairo.x86_64.

Install pycairo.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pycairo.x86_64 using yum by running the following command:

sudo yum -y install pycairo.x86_64

How To Uninstall pycairo.x86_64 on Amazon Linux 2

To uninstall only the pycairo.x86_64 package we can use the following command:

sudo yum remove pycairo.x86_64

pycairo.x86_64 Package Contents on Amazon Linux 2

/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__.pyo
/usr/lib64/python2.7/site-packages/cairo/_cairo.so
/usr/share/doc/pycairo-1.8.10
/usr/share/doc/pycairo-1.8.10/AUTHORS
/usr/share/doc/pycairo-1.8.10/COPYING
/usr/share/doc/pycairo-1.8.10/COPYING-LGPL-2.1
/usr/share/doc/pycairo-1.8.10/COPYING-MPL-1.1
/usr/share/doc/pycairo-1.8.10/INSTALL
/usr/share/doc/pycairo-1.8.10/NEWS
/usr/share/doc/pycairo-1.8.10/README
/usr/share/doc/pycairo-1.8.10/examples
/usr/share/doc/pycairo-1.8.10/examples/Makefile
/usr/share/doc/pycairo-1.8.10/examples/Makefile.am
/usr/share/doc/pycairo-1.8.10/examples/Makefile.in
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/data
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/data/romedalen.png
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/__init__.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/arc.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/arc_negative.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/clip.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/clip_image.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/curve_rectangle.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/curve_to.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/ellipse.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/fill_and_stroke.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/fill_and_stroke2.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/glyph_path.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/gradient.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/gradient_mask.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/group.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/image.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/imagepattern.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/path.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/set_line_cap.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/set_line_join.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/show_glyphs.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/text.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/text_align_center.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets/text_extents.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets_gtk.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets_pdf.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets_png.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets_ps.py
/usr/share/doc/pycairo-1.8.10/examples/cairo_snippets/snippets_svg.py
/usr/share/doc/pycairo-1.8.10/examples/gradient.py
/usr/share/doc/pycairo-1.8.10/examples/gtk
/usr/share/doc/pycairo-1.8.10/examples/gtk/cairo-demo.py
/usr/share/doc/pycairo-1.8.10/examples/gtk/cairo-knockout.py
/usr/share/doc/pycairo-1.8.10/examples/gtk/hangman.py
/usr/share/doc/pycairo-1.8.10/examples/gtk/lsystem.py
/usr/share/doc/pycairo-1.8.10/examples/gtk/png_view.py
/usr/share/doc/pycairo-1.8.10/examples/gtk/text.py
/usr/share/doc/pycairo-1.8.10/examples/hering.py
/usr/share/doc/pycairo-1.8.10/examples/spiral.py
/usr/share/doc/pycairo-1.8.10/examples/warpedtext.py
/usr/share/doc/pycairo-1.8.10/faq.rst
/usr/share/doc/pycairo-1.8.10/overview.rst

References

Summary

In this tutorial we learn how to install pycairo.x86_64 on Amazon Linux 2 using yum.