How To Install pygtk2 on Fedora 36

In this tutorial we learn how to install pygtk2 in Fedora 36. pygtk2 is Python bindings for GTK+

Introduction

In this tutorial we learn how to install pygtk2 on Fedora 36.

What is pygtk2

PyGTK is an extension module for Python that gives you access to the GTK+ widget set. Just about anything you can write in C with GTK+ you can write in Python with PyGTK (within reason), but with all the benefits of using a high-level scripting language.

We can use yum or dnf to install pygtk2 on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pygtk2.

Install pygtk2 on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install pygtk2 using dnf by running the following command:

sudo dnf -y install pygtk2

Install pygtk2 on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pygtk2 using yum by running the following command:

sudo yum -y install pygtk2

How To Uninstall pygtk2 on Fedora 36

To uninstall only the pygtk2 package we can use the following command:

sudo dnf remove pygtk2

pygtk2 Package Contents on Fedora 36

/usr/bin/pygtk-demo
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/ab4046016a79bfb810752268b4f63b29679fab
/usr/lib/.build-id/58
/usr/lib/.build-id/58/a08799dadd3f10f4617174ff3ab0a38a08af16
/usr/lib/.build-id/63
/usr/lib/.build-id/63/f63f92fc68cde7c60f65cf007f71f7d1e54e81
/usr/lib/.build-id/80
/usr/lib/.build-id/80/f77c39bf6cdf1f4be2ed46abfd8249aa7a58e1
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/0d2ff08890156f133147f49713b087da66f456
/usr/lib64/pygtk
/usr/lib64/pygtk/2.0
/usr/lib64/pygtk/2.0/demos
/usr/lib64/pygtk/2.0/demos/__init__.py
/usr/lib64/pygtk/2.0/demos/__init__.pyc
/usr/lib64/pygtk/2.0/demos/__init__.pyo
/usr/lib64/pygtk/2.0/demos/appwindow.py
/usr/lib64/pygtk/2.0/demos/appwindow.pyc
/usr/lib64/pygtk/2.0/demos/appwindow.pyo
/usr/lib64/pygtk/2.0/demos/buttonbox.py
/usr/lib64/pygtk/2.0/demos/buttonbox.pyc
/usr/lib64/pygtk/2.0/demos/buttonbox.pyo
/usr/lib64/pygtk/2.0/demos/changedisplay.py
/usr/lib64/pygtk/2.0/demos/changedisplay.pyc
/usr/lib64/pygtk/2.0/demos/changedisplay.pyo
/usr/lib64/pygtk/2.0/demos/colorsel.py
/usr/lib64/pygtk/2.0/demos/colorsel.pyc
/usr/lib64/pygtk/2.0/demos/colorsel.pyo
/usr/lib64/pygtk/2.0/demos/dialogs.py
/usr/lib64/pygtk/2.0/demos/dialogs.pyc
/usr/lib64/pygtk/2.0/demos/dialogs.pyo
/usr/lib64/pygtk/2.0/demos/dnd.py
/usr/lib64/pygtk/2.0/demos/dnd.pyc
/usr/lib64/pygtk/2.0/demos/dnd.pyo
/usr/lib64/pygtk/2.0/demos/dndpixmap.py
/usr/lib64/pygtk/2.0/demos/dndpixmap.pyc
/usr/lib64/pygtk/2.0/demos/dndpixmap.pyo
/usr/lib64/pygtk/2.0/demos/editable_cells.py
/usr/lib64/pygtk/2.0/demos/editable_cells.pyc
/usr/lib64/pygtk/2.0/demos/editable_cells.pyo
/usr/lib64/pygtk/2.0/demos/entry_completion.py
/usr/lib64/pygtk/2.0/demos/entry_completion.pyc
/usr/lib64/pygtk/2.0/demos/entry_completion.pyo
/usr/lib64/pygtk/2.0/demos/expander.py
/usr/lib64/pygtk/2.0/demos/expander.pyc
/usr/lib64/pygtk/2.0/demos/expander.pyo
/usr/lib64/pygtk/2.0/demos/hypertext.py
/usr/lib64/pygtk/2.0/demos/hypertext.pyc
/usr/lib64/pygtk/2.0/demos/hypertext.pyo
/usr/lib64/pygtk/2.0/demos/images
/usr/lib64/pygtk/2.0/demos/images.py
/usr/lib64/pygtk/2.0/demos/images.pyc
/usr/lib64/pygtk/2.0/demos/images.pyo
/usr/lib64/pygtk/2.0/demos/images/alphatest.png
/usr/lib64/pygtk/2.0/demos/images/apple-red.png
/usr/lib64/pygtk/2.0/demos/images/background.jpg
/usr/lib64/pygtk/2.0/demos/images/floppybuddy.gif
/usr/lib64/pygtk/2.0/demos/images/gnome-applets.png
/usr/lib64/pygtk/2.0/demos/images/gnome-calendar.png
/usr/lib64/pygtk/2.0/demos/images/gnome-foot.png
/usr/lib64/pygtk/2.0/demos/images/gnome-gimp.png
/usr/lib64/pygtk/2.0/demos/images/gnome-gmush.png
/usr/lib64/pygtk/2.0/demos/images/gnome-gsame.png
/usr/lib64/pygtk/2.0/demos/images/gnu-keys.png
/usr/lib64/pygtk/2.0/demos/images/gtk-logo-rgb.gif
/usr/lib64/pygtk/2.0/demos/infobar.py
/usr/lib64/pygtk/2.0/demos/infobar.pyc
/usr/lib64/pygtk/2.0/demos/infobar.pyo
/usr/lib64/pygtk/2.0/demos/list_store.py
/usr/lib64/pygtk/2.0/demos/list_store.pyc
/usr/lib64/pygtk/2.0/demos/list_store.pyo
/usr/lib64/pygtk/2.0/demos/menu.py
/usr/lib64/pygtk/2.0/demos/menu.pyc
/usr/lib64/pygtk/2.0/demos/menu.pyo
/usr/lib64/pygtk/2.0/demos/panes.py
/usr/lib64/pygtk/2.0/demos/panes.pyc
/usr/lib64/pygtk/2.0/demos/panes.pyo
/usr/lib64/pygtk/2.0/demos/pixbufs.py
/usr/lib64/pygtk/2.0/demos/pixbufs.pyc
/usr/lib64/pygtk/2.0/demos/pixbufs.pyo
/usr/lib64/pygtk/2.0/demos/print_editor.py
/usr/lib64/pygtk/2.0/demos/print_editor.pyc
/usr/lib64/pygtk/2.0/demos/print_editor.pyo
/usr/lib64/pygtk/2.0/demos/sizegroup.py
/usr/lib64/pygtk/2.0/demos/sizegroup.pyc
/usr/lib64/pygtk/2.0/demos/sizegroup.pyo
/usr/lib64/pygtk/2.0/demos/statusicon.py
/usr/lib64/pygtk/2.0/demos/statusicon.pyc
/usr/lib64/pygtk/2.0/demos/statusicon.pyo
/usr/lib64/pygtk/2.0/demos/stock_browser.py
/usr/lib64/pygtk/2.0/demos/stock_browser.pyc
/usr/lib64/pygtk/2.0/demos/stock_browser.pyo
/usr/lib64/pygtk/2.0/demos/textscroll.py
/usr/lib64/pygtk/2.0/demos/textscroll.pyc
/usr/lib64/pygtk/2.0/demos/textscroll.pyo
/usr/lib64/pygtk/2.0/demos/textview.py
/usr/lib64/pygtk/2.0/demos/textview.pyc
/usr/lib64/pygtk/2.0/demos/textview.pyo
/usr/lib64/pygtk/2.0/demos/tooltip.py
/usr/lib64/pygtk/2.0/demos/tooltip.pyc
/usr/lib64/pygtk/2.0/demos/tooltip.pyo
/usr/lib64/pygtk/2.0/demos/tree_store.py
/usr/lib64/pygtk/2.0/demos/tree_store.pyc
/usr/lib64/pygtk/2.0/demos/tree_store.pyo
/usr/lib64/pygtk/2.0/demos/treemodel.py
/usr/lib64/pygtk/2.0/demos/treemodel.pyc
/usr/lib64/pygtk/2.0/demos/treemodel.pyo
/usr/lib64/pygtk/2.0/demos/ui_manager.py
/usr/lib64/pygtk/2.0/demos/ui_manager.pyc
/usr/lib64/pygtk/2.0/demos/ui_manager.pyo
/usr/lib64/pygtk/2.0/pygtk-demo.py
/usr/lib64/pygtk/2.0/pygtk-demo.pyc
/usr/lib64/pygtk/2.0/pygtk-demo.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/gtk-2.0/atk.so
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/_gtk.so
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/_lazyutils.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/_lazyutils.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/_lazyutils.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/compat.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/compat.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/compat.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/deprecation.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/deprecation.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/deprecation.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/keysyms.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/keysyms.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/keysyms.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtkunixprint.so
/usr/lib64/python2.7/site-packages/gtk-2.0/pango.so
/usr/lib64/python2.7/site-packages/gtk-2.0/pangocairo.so
/usr/share/doc/pygtk2
/usr/share/doc/pygtk2/AUTHORS
/usr/share/doc/pygtk2/MAPPING
/usr/share/doc/pygtk2/NEWS
/usr/share/doc/pygtk2/README
/usr/share/licenses/pygtk2
/usr/share/licenses/pygtk2/COPYING

References

Summary

In this tutorial we learn how to install pygtk2 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).