How To Install mozjs68 on Fedora 34
Introduction
In this tutorial we learn how to install mozjs68
on Fedora 34.
What is mozjs68
SpiderMonkey is the code-name for Mozilla Firefox’s C++ implementation of JavaScript. It is intended to be embedded in other applications that provide host environments for JavaScript. mozjs68 68.12.0 2.fc34 x86_64 6.8 M mozjs68-68.12.0-2.fc34.src.rpm fedora SpiderMonkey JavaScript library https MPLv2.0 and MPLv1.1 and BSD and GPLv2+ and GPLv3+ and LGPLv2+ and AFL and ASL 2.0 SpiderMonkey is the code-name for Mozilla Firefox’s C++ implementation of JavaScript. It is intended to be embedded in other applications that provide host environments for JavaScript.
We can use yum
or dnf
to install mozjs68
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mozjs68.
Install mozjs68 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 mozjs68
using dnf
by running the following command:
sudo dnf -y install mozjs68
Install mozjs68 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 mozjs68
using yum
by running the following command:
sudo yum -y install mozjs68
How To Uninstall mozjs68 on Fedora 34
To uninstall only the mozjs68
package we can use the following command:
sudo dnf remove mozjs68
mozjs68 Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/6f21a61a86033fdae99cc35b692d4376a52550
/usr/lib64/libmozjs-68.so.0
/usr/lib64/libmozjs-68.so.0.0.0
/usr/share/doc/mozjs68
/usr/share/doc/mozjs68/README.html
/usr/lib/.build-id
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/d91fafb1f7d4ea43b4179935dd11337e343458
/usr/lib/libmozjs-68.so.0
/usr/lib/libmozjs-68.so.0.0.0
/usr/share/doc/mozjs68
/usr/share/doc/mozjs68/README.html
References
- [mozjs68 website](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey)
Summary
In this tutorial we learn how to install mozjs68
on Fedora 34 using yum and dnf.