How To Install gobject-introspection.x86_64 on Amazon Linux 2

In this tutorial we learn how to install gobject-introspection.x86_64 in Amazon Linux 2. gobject-introspection.x86_64 is Introspection system for GObject-based libraries

Introduction

In this tutorial we learn how to install gobject-introspection.x86_64 on Amazon Linux 2.

What is gobject-introspection.x86_64

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 to install gobject-introspection.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gobject-introspection.x86_64.

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

sudo yum -y install gobject-introspection.x86_64

How To Uninstall gobject-introspection.x86_64 on Amazon Linux 2

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

sudo yum remove gobject-introspection.x86_64

gobject-introspection.x86_64 Package Contents on Amazon Linux 2

/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-1.56.1
/usr/share/licenses/gobject-introspection-1.56.1/COPYING

References

Summary

In this tutorial we learn how to install gobject-introspection.x86_64 on Amazon Linux 2 using yum.