How To Install gobject-introspection on CentOS 8

gobject-introspection is Introspection system for GObject-based libraries Introspection system for GObject-based libraries

Introduction

In this tutorial we learn how to install gobject-introspection on CentOS 8.

What is gobject-introspection

GObject Introspection can scan C header and source files in order to generate introspection “typelib” files. It also provides an API to examine typelib files, useful for creating language bindings among other things. gobject-introspection 1.56.1 1.el8 x86_64 255 k gobject-introspection-1.56.1-1.el8.src.rpm baseos Introspection system for GObject-based libraries https GPLv2+, LGPLv2+, MIT GObject Introspection can scan C header and source files in order to generate introspection “typelib” files. It also provides an API to examine typelib files, useful for creating language bindings among other things.

We can use yum or dnf to install gobject-introspection on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install gobject-introspection.

Install gobject-introspection 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 gobject-introspection using dnf by running the following command:

sudo dnf -y install gobject-introspection

Install gobject-introspection 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 gobject-introspection using yum by running the following command:

sudo yum -y install gobject-introspection

How To Uninstall gobject-introspection on CentOS 8

To uninstall only the gobject-introspection package we can use the following command:

sudo dnf remove gobject-introspection

gobject-introspection Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/13b708d3d6d402b1f3fd1cb1b54ca586e2ed6e
/usr/lib64/girepository-1.0
/usr/lib64/girepository-1.0/DBus-1.0.typelib
/usr/lib64/girepository-1.0/DBusGLib-1.0.typelib
/usr/lib64/girepository-1.0/GIRepository-2.0.typelib
/usr/lib64/girepository-1.0/GL-1.0.typelib
/usr/lib64/girepository-1.0/GLib-2.0.typelib
/usr/lib64/girepository-1.0/GModule-2.0.typelib
/usr/lib64/girepository-1.0/GObject-2.0.typelib
/usr/lib64/girepository-1.0/Gio-2.0.typelib
/usr/lib64/girepository-1.0/cairo-1.0.typelib
/usr/lib64/girepository-1.0/fontconfig-2.0.typelib
/usr/lib64/girepository-1.0/freetype2-2.0.typelib
/usr/lib64/girepository-1.0/libxml2-2.0.typelib
/usr/lib64/girepository-1.0/win32-1.0.typelib
/usr/lib64/girepository-1.0/xfixes-4.0.typelib
/usr/lib64/girepository-1.0/xft-2.0.typelib
/usr/lib64/girepository-1.0/xlib-2.0.typelib
/usr/lib64/girepository-1.0/xrandr-1.3.typelib
/usr/lib64/libgirepository-1.0.so.1
/usr/lib64/libgirepository-1.0.so.1.0.0
/usr/share/licenses/gobject-introspection
/usr/share/licenses/gobject-introspection/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/5f44a3fd9b04630e265b6aa808177d69e4f1e0
/usr/lib/girepository-1.0
/usr/lib/girepository-1.0/DBus-1.0.typelib
/usr/lib/girepository-1.0/DBusGLib-1.0.typelib
/usr/lib/girepository-1.0/GIRepository-2.0.typelib
/usr/lib/girepository-1.0/GL-1.0.typelib
/usr/lib/girepository-1.0/GLib-2.0.typelib
/usr/lib/girepository-1.0/GModule-2.0.typelib
/usr/lib/girepository-1.0/GObject-2.0.typelib
/usr/lib/girepository-1.0/Gio-2.0.typelib
/usr/lib/girepository-1.0/cairo-1.0.typelib
/usr/lib/girepository-1.0/fontconfig-2.0.typelib
/usr/lib/girepository-1.0/freetype2-2.0.typelib
/usr/lib/girepository-1.0/libxml2-2.0.typelib
/usr/lib/girepository-1.0/win32-1.0.typelib
/usr/lib/girepository-1.0/xfixes-4.0.typelib
/usr/lib/girepository-1.0/xft-2.0.typelib
/usr/lib/girepository-1.0/xlib-2.0.typelib
/usr/lib/girepository-1.0/xrandr-1.3.typelib
/usr/lib/libgirepository-1.0.so.1
/usr/lib/libgirepository-1.0.so.1.0.0
/usr/share/licenses/gobject-introspection
/usr/share/licenses/gobject-introspection/COPYING

References

Summary

In this tutorial we learn how to install gobject-introspection on CentOS 8 using yum and dnf.