How To Install gjs on Fedora 34

gjs is Javascript Bindings for GNOME Javascript Bindings for GNOME

Introduction

In this tutorial we learn how to install gjs on Fedora 34.

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.68.1 3.fc34 x86_64 423 k gjs-1.68.1-3.fc34.src.rpm updates 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install gjs.

Install gjs on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34

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

sudo dnf remove gjs

gjs Package Contents on Fedora 34

/usr/bin/gjs
/usr/bin/gjs-console
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/e82485a8373557627a32eec4d5139e36717b01
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/2f73d61cb516ef84482aab23c175c44580ef74
/usr/lib64/gjs
/usr/lib64/gjs/girepository-1.0
/usr/lib64/gjs/girepository-1.0/GjsPrivate-1.0.typelib
/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.md
/usr/share/licenses/gjs
/usr/share/licenses/gjs/COPYING
/usr/bin/gjs
/usr/bin/gjs-console
/usr/lib/.build-id
/usr/lib/.build-id/65
/usr/lib/.build-id/65/dcfab1078b56e3f370a6d81dbf787e51bebb20
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/ecb1d14468ea08af1db93c7c25be43eac5014a
/usr/lib/gjs
/usr/lib/gjs/girepository-1.0
/usr/lib/gjs/girepository-1.0/GjsPrivate-1.0.typelib
/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.md
/usr/share/licenses/gjs
/usr/share/licenses/gjs/COPYING
/usr/bin/gjs
/usr/bin/gjs-console
/usr/lib/.build-id
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/6d389449645185575d0ebac335a3ea93599d7d
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/4af026e09b380dfe901ada9cf770bbfd0a1697
/usr/lib/gjs
/usr/lib/gjs/girepository-1.0
/usr/lib/gjs/girepository-1.0/GjsPrivate-1.0.typelib
/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.md
/usr/share/licenses/gjs
/usr/share/licenses/gjs/COPYING
/usr/bin/gjs
/usr/bin/gjs-console
/usr/lib/.build-id
/usr/lib/.build-id/97
/usr/lib/.build-id/97/14c475a7efc206db7adccc55a03a2fbdf9520c
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/871f3b6c542b5f5e4c24a13c83b05a0097e386
/usr/lib64/gjs
/usr/lib64/gjs/girepository-1.0
/usr/lib64/gjs/girepository-1.0/GjsPrivate-1.0.typelib
/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.md
/usr/share/licenses/gjs
/usr/share/licenses/gjs/COPYING

References

Summary

In this tutorial we learn how to install gjs on Fedora 34 using yum and dnf.