How To Install json-glib on CentOS 8

json-glib is Library for JavaScript Object Notation format Library for JavaScript Object Notation format

Introduction

In this tutorial we learn how to install json-glib on CentOS 8.

What is json-glib

json-glib is a library providing serialization and deserialization support for the JavaScript Object Notation (JSON) format. json-glib 1.4.4 1.el8 x86_64 144 k json-glib-1.4.4-1.el8.src.rpm baseos Library for JavaScript Object Notation format https LGPLv2+ json-glib is a library providing serialization and deserialization support for the JavaScript Object Notation (JSON) format.

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

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

sudo dnf -y install json-glib

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

sudo yum -y install json-glib

How To Uninstall json-glib on CentOS 8

To uninstall only the json-glib package we can use the following command:

sudo dnf remove json-glib

json-glib Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/a9d54896a1d78627b16fbb0b1bc82b49efcbdb
/usr/lib64/girepository-1.0/Json-1.0.typelib
/usr/lib64/libjson-glib-1.0.so.0
/usr/lib64/libjson-glib-1.0.so.0.400.4
/usr/share/doc/json-glib
/usr/share/doc/json-glib/NEWS
/usr/share/licenses/json-glib
/usr/share/licenses/json-glib/COPYING
/usr/share/locale/as/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/bg/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/bn_IN/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/bs/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ca/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ca@valencia/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/cs/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/da/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/de/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/el/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/en_GB/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/eo/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/es/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/et/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/eu/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/fr/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/fur/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/gl/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/he/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/hi/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/hr/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/hu/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/id/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/it/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ja/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ko/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ky/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/lt/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/lv/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ml/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/nb/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ne/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/nl/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/oc/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/or/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/pa/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/pl/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/pt/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/pt_BR/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ro/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ru/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sk/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sl/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sr/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sr@latin/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sv/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/te/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/tg/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/tr/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ug/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/uk/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/vi/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/zh_CN/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/zh_HK/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/zh_TW/LC_MESSAGES/json-glib-1.0.mo
/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/86f02317be1e70fa9f357fbfb3a0fa6f3a2d06
/usr/lib/girepository-1.0/Json-1.0.typelib
/usr/lib/libjson-glib-1.0.so.0
/usr/lib/libjson-glib-1.0.so.0.400.4
/usr/share/doc/json-glib
/usr/share/doc/json-glib/NEWS
/usr/share/licenses/json-glib
/usr/share/licenses/json-glib/COPYING
/usr/share/locale/as/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/bg/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/bn_IN/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/bs/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ca/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ca@valencia/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/cs/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/da/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/de/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/el/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/en_GB/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/eo/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/es/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/et/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/eu/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/fr/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/fur/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/gl/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/he/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/hi/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/hr/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/hu/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/id/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/it/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ja/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ko/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ky/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/lt/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/lv/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ml/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/nb/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ne/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/nl/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/oc/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/or/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/pa/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/pl/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/pt/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/pt_BR/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ro/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ru/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sk/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sl/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sr/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sr@latin/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/sv/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/te/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/tg/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/tr/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/ug/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/uk/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/vi/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/zh_CN/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/zh_HK/LC_MESSAGES/json-glib-1.0.mo
/usr/share/locale/zh_TW/LC_MESSAGES/json-glib-1.0.mo

References

Summary

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