How To Install gjs on CentOS 8

gjs is Javascript Bindings for GNOME Javascript Bindings for GNOME

Introduction

In this tutorial we learn how to install gjs on CentOS 8.

What is gjs

Gjs allows using GNOME libraries from Javascript. It’s based on the Spidermonkey Javascript engine from Mozilla and the GObject introspection framework. gjs 1.56.2 5.el8 x86_64 425 k gjs-1.56.2-5.el8.src.rpm appstream Javascript Bindings for GNOME https MIT and (MPLv1.1 or GPLv2+ or LGPLv2+) Gjs allows using GNOME libraries from Javascript. It’s based on the Spidermonkey Javascript engine from Mozilla and the GObject introspection framework.

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

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

sudo dnf -y install gjs

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

sudo yum -y install gjs

How To Uninstall gjs on CentOS 8

To uninstall only the gjs package we can use the following command:

sudo dnf remove gjs

gjs Package Contents on CentOS 8

/usr/bin/gjs
/usr/bin/gjs-console
/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/4eb2bb02e3db1bbd6fa19cecc74f8ee16444f9
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/ac200c7d2a2310ba21e870ea6f1439f8c86b06
/usr/lib/.build-id/41
/usr/lib/.build-id/41/2f5f57679da999a755e78b3747e2169e377b4c
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/622fa3f7809364a33a5d2a1401194984d57022
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/13f4d57d830e1412ddd607c1d0397c09bd888f
/usr/lib64/gjs
/usr/lib64/gjs/girepository-1.0
/usr/lib64/gjs/girepository-1.0/GjsPrivate-1.0.typelib
/usr/lib64/gjs/libgimarshallingtests.so
/usr/lib64/gjs/libregress.so
/usr/lib64/gjs/libwarnlib.so
/usr/lib64/libgjs.so.0
/usr/lib64/libgjs.so.0.0.0
/usr/share/doc/gjs
/usr/share/doc/gjs/NEWS
/usr/share/doc/gjs/README
/usr/share/licenses/gjs
/usr/share/licenses/gjs/COPYING
/usr/bin/gjs
/usr/bin/gjs-console
/usr/lib/.build-id
/usr/lib/.build-id/34
/usr/lib/.build-id/34/a3adebd989ff725d58013bb8d16d108c10780d
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/76bb175cc69d0401ecd805402965f70c241ac9
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/44935ea8a51978a0e3a17cdd49ce48abc08490
/usr/lib/.build-id/95
/usr/lib/.build-id/95/e3d41a15c233a74113e48ac10317cf6a47624f
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/0ce800f437f1ad85067840d9e785ef2450caf9
/usr/lib/gjs
/usr/lib/gjs/girepository-1.0
/usr/lib/gjs/girepository-1.0/GjsPrivate-1.0.typelib
/usr/lib/gjs/libgimarshallingtests.so
/usr/lib/gjs/libregress.so
/usr/lib/gjs/libwarnlib.so
/usr/lib/libgjs.so.0
/usr/lib/libgjs.so.0.0.0
/usr/share/doc/gjs
/usr/share/doc/gjs/NEWS
/usr/share/doc/gjs/README
/usr/share/licenses/gjs
/usr/share/licenses/gjs/COPYING

References

Summary

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