How To Install pygobject2.i686 on Amazon Linux 2

In this tutorial we learn how to install pygobject2.i686 in Amazon Linux 2. pygobject2.i686 is Python 2 bindings for GObject

Introduction

In this tutorial we learn how to install pygobject2.i686 on Amazon Linux 2.

What is pygobject2.i686

The pygobject2 package provides a convenient wrapper for the GObject library for use in Python programs.

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

Install pygobject2.i686 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 pygobject2.i686 using yum by running the following command:

sudo yum -y install pygobject2.i686

How To Uninstall pygobject2.i686 on Amazon Linux 2

To uninstall only the pygobject2.i686 package we can use the following command:

sudo yum remove pygobject2.i686

pygobject2.i686 Package Contents on Amazon Linux 2

/usr/lib/libpyglib-2.0-python.so
/usr/lib/libpyglib-2.0-python.so.0
/usr/lib/libpyglib-2.0-python.so.0.0.0
/usr/lib/python2.7/site-packages/glib
/usr/lib/python2.7/site-packages/glib/__init__.py
/usr/lib/python2.7/site-packages/glib/__init__.pyc
/usr/lib/python2.7/site-packages/glib/__init__.pyo
/usr/lib/python2.7/site-packages/glib/_glib.so
/usr/lib/python2.7/site-packages/glib/option.py
/usr/lib/python2.7/site-packages/glib/option.pyc
/usr/lib/python2.7/site-packages/glib/option.pyo
/usr/lib/python2.7/site-packages/gobject
/usr/lib/python2.7/site-packages/gobject/__init__.py
/usr/lib/python2.7/site-packages/gobject/__init__.pyc
/usr/lib/python2.7/site-packages/gobject/__init__.pyo
/usr/lib/python2.7/site-packages/gobject/_gobject.so
/usr/lib/python2.7/site-packages/gobject/constants.py
/usr/lib/python2.7/site-packages/gobject/constants.pyc
/usr/lib/python2.7/site-packages/gobject/constants.pyo
/usr/lib/python2.7/site-packages/gobject/propertyhelper.py
/usr/lib/python2.7/site-packages/gobject/propertyhelper.pyc
/usr/lib/python2.7/site-packages/gobject/propertyhelper.pyo
/usr/lib/python2.7/site-packages/gtk-2.0
/usr/lib/python2.7/site-packages/gtk-2.0/dsextras.py
/usr/lib/python2.7/site-packages/gtk-2.0/dsextras.pyc
/usr/lib/python2.7/site-packages/gtk-2.0/dsextras.pyo
/usr/lib/python2.7/site-packages/gtk-2.0/gio
/usr/lib/python2.7/site-packages/gtk-2.0/gio/__init__.py
/usr/lib/python2.7/site-packages/gtk-2.0/gio/__init__.pyc
/usr/lib/python2.7/site-packages/gtk-2.0/gio/__init__.pyo
/usr/lib/python2.7/site-packages/gtk-2.0/gio/_gio.so
/usr/lib/python2.7/site-packages/gtk-2.0/gio/unix.so
/usr/lib/python2.7/site-packages/pygtk.pth
/usr/lib/python2.7/site-packages/pygtk.py
/usr/lib/python2.7/site-packages/pygtk.pyc
/usr/lib/python2.7/site-packages/pygtk.pyo
/usr/share/doc/pygobject2-2.28.6
/usr/share/doc/pygobject2-2.28.6/AUTHORS
/usr/share/doc/pygobject2-2.28.6/NEWS
/usr/share/doc/pygobject2-2.28.6/README
/usr/share/doc/pygobject2-2.28.6/examples
/usr/share/doc/pygobject2-2.28.6/examples/cairo-demo.py
/usr/share/doc/pygobject2-2.28.6/examples/option.py
/usr/share/doc/pygobject2-2.28.6/examples/properties.py
/usr/share/doc/pygobject2-2.28.6/examples/signal.py

References

Summary

In this tutorial we learn how to install pygobject2.i686 on Amazon Linux 2 using yum.