How To Install pygobject2 on CentOS 8
Introduction
In this tutorial we learn how to install pygobject2
on CentOS 8.
What is pygobject2
The pygobject2 package provides a convenient wrapper for the GObject library for use in Python programs.
We can use yum
or dnf
to install pygobject2
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install pygobject2.
Install pygobject2 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 pygobject2
using dnf
by running the following command:
sudo dnf -y install pygobject2
Install pygobject2 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 pygobject2
using yum
by running the following command:
sudo yum -y install pygobject2
How To Uninstall pygobject2 on CentOS 8
To uninstall only the pygobject2
package we can use the following command:
sudo dnf remove pygobject2
pygobject2 Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/6b8d97098fa61f707d1575b1bfeef6be0fb405
/usr/lib/.build-id/27
/usr/lib/.build-id/27/9ee11b464eb466f797e403f5a1a3b11c382cbb
/usr/lib/.build-id/50
/usr/lib/.build-id/50/97d1d8a873003e0bc67dcaa4602f6c740665bb
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/9f31b02f2bcc5c7083ead00247604830b66536
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/490e27ac96763e9b88a7dcb890e1afc5d50aa1
/usr/lib64/libpyglib-2.0-python2.so
/usr/lib64/libpyglib-2.0-python2.so.0
/usr/lib64/libpyglib-2.0-python2.so.0.0.0
/usr/lib64/python2.7/site-packages/glib
/usr/lib64/python2.7/site-packages/glib/__init__.py
/usr/lib64/python2.7/site-packages/glib/__init__.pyc
/usr/lib64/python2.7/site-packages/glib/__init__.pyo
/usr/lib64/python2.7/site-packages/glib/_glib.so
/usr/lib64/python2.7/site-packages/glib/option.py
/usr/lib64/python2.7/site-packages/glib/option.pyc
/usr/lib64/python2.7/site-packages/glib/option.pyo
/usr/lib64/python2.7/site-packages/gobject
/usr/lib64/python2.7/site-packages/gobject/__init__.py
/usr/lib64/python2.7/site-packages/gobject/__init__.pyc
/usr/lib64/python2.7/site-packages/gobject/__init__.pyo
/usr/lib64/python2.7/site-packages/gobject/_gobject.so
/usr/lib64/python2.7/site-packages/gobject/constants.py
/usr/lib64/python2.7/site-packages/gobject/constants.pyc
/usr/lib64/python2.7/site-packages/gobject/constants.pyo
/usr/lib64/python2.7/site-packages/gobject/propertyhelper.py
/usr/lib64/python2.7/site-packages/gobject/propertyhelper.pyc
/usr/lib64/python2.7/site-packages/gobject/propertyhelper.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/gtk-2.0/dsextras.py
/usr/lib64/python2.7/site-packages/gtk-2.0/dsextras.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/dsextras.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gio
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/__init__.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/__init__.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/__init__.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/_gio.so
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/unix.so
/usr/lib64/python2.7/site-packages/pygtk.pth
/usr/lib64/python2.7/site-packages/pygtk.py
/usr/lib64/python2.7/site-packages/pygtk.pyc
/usr/lib64/python2.7/site-packages/pygtk.pyo
/usr/share/doc/pygobject2
/usr/share/doc/pygobject2/AUTHORS
/usr/share/doc/pygobject2/NEWS
/usr/share/doc/pygobject2/README
/usr/share/doc/pygobject2/examples
/usr/share/doc/pygobject2/examples/cairo-demo.py
/usr/share/doc/pygobject2/examples/option.py
/usr/share/doc/pygobject2/examples/properties.py
/usr/share/doc/pygobject2/examples/signal.py
References
Summary
In this tutorial we learn how to install pygobject2
on CentOS 8 using yum and dnf.