How To Install gnome-python2-canvas.x86_64 on Amazon Linux 2

In this tutorial we learn how to install gnome-python2-canvas.x86_64 in Amazon Linux 2. gnome-python2-canvas.x86_64 is Python bindings for the GNOME Canvas

Introduction

In this tutorial we learn how to install gnome-python2-canvas.x86_64 on Amazon Linux 2.

What is gnome-python2-canvas.x86_64

This module contains a wrapper that allows use of the GNOME Canvas in Python.

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

Install gnome-python2-canvas.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 gnome-python2-canvas.x86_64 using yum by running the following command:

sudo yum -y install gnome-python2-canvas.x86_64

How To Uninstall gnome-python2-canvas.x86_64 on Amazon Linux 2

To uninstall only the gnome-python2-canvas.x86_64 package we can use the following command:

sudo yum remove gnome-python2-canvas.x86_64

gnome-python2-canvas.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/gtk-2.0/gnome/canvas.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gnome/canvas.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gnome/canvas.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gnomecanvas.so
/usr/share/doc/gnome-python2-canvas-2.28.1
/usr/share/doc/gnome-python2-canvas-2.28.1/canvas-curve.py
/usr/share/doc/gnome-python2-canvas-2.28.1/canvas-example.py
/usr/share/pygtk/2.0/defs/canvas.defs

References

Summary

In this tutorial we learn how to install gnome-python2-canvas.x86_64 on Amazon Linux 2 using yum.