How To Install mozjs78 on Fedora 34
Introduction
In this tutorial we learn how to install mozjs78
on Fedora 34.
What is mozjs78
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. mozjs78 78.12.0 1.fc34 x86_64 8.2 M mozjs78-78.12.0-1.fc34.src.rpm updates 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 mozjs78
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mozjs78.
Install mozjs78 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 mozjs78
using dnf
by running the following command:
sudo dnf -y install mozjs78
Install mozjs78 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 mozjs78
using yum
by running the following command:
sudo yum -y install mozjs78
How To Uninstall mozjs78 on Fedora 34
To uninstall only the mozjs78
package we can use the following command:
sudo dnf remove mozjs78
mozjs78 Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/66
/usr/lib/.build-id/66/12827935cbdd355b5d85705b9da5c62128c164
/usr/lib64/libmozjs-78.so.0
/usr/lib64/libmozjs-78.so.0.0.0
/usr/share/doc/mozjs78
/usr/share/doc/mozjs78/README.html
/usr/share/licenses/mozjs78
/usr/share/licenses/mozjs78/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/d70470e1ae9889d05fb62783c97c2bac5cca44
/usr/lib/libmozjs-78.so.0
/usr/lib/libmozjs-78.so.0.0.0
/usr/share/doc/mozjs78
/usr/share/doc/mozjs78/README.html
/usr/share/licenses/mozjs78
/usr/share/licenses/mozjs78/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/3a97c3c586c6800724655386e4bf7be13366c4
/usr/lib64/libmozjs-78.so.0
/usr/lib64/libmozjs-78.so.0.0.0
/usr/share/doc/mozjs78
/usr/share/doc/mozjs78/README.html
/usr/share/licenses/mozjs78
/usr/share/licenses/mozjs78/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/da
/usr/lib/.build-id/da/5f0a3e692d3530a50a5bcaa84cda5febb01aab
/usr/lib/libmozjs-78.so.0
/usr/lib/libmozjs-78.so.0.0.0
/usr/share/doc/mozjs78
/usr/share/doc/mozjs78/README.html
/usr/share/licenses/mozjs78
/usr/share/licenses/mozjs78/LICENSE
References
- [mozjs78 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 mozjs78
on Fedora 34 using yum and dnf.