How To Install pygtk2 on CentOS 8
Introduction
In this tutorial we learn how to install pygtk2
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install pygtk2.
Install pygtk2 on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install pygtk2
using dnf
by running the following command:
sudo dnf -y install pygtk2
Install pygtk2 on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the pygtk2
package we can use the following command:
sudo dnf remove pygtk2
pygtk2 Package Contents on CentOS 8
/usr/bin/pygtk-demo
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/a6d20ddd6b2525921f83ed08aab571736f6c85
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/37a79d02c0edf5e3b3b158156087221249be41
/usr/lib/.build-id/77
/usr/lib/.build-id/77/88eee5ef0b38064853ef3eb9ca40e83d6501a7
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/709a283f350be2b0ad9795058df39580f5d00c
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/d7bc024d9f23950869367edf17705b89c703b7
/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 CentOS 8 using yum and dnf.