How To Install rubygem-execjs on Fedora 36

In this tutorial we learn how to install rubygem-execjs in Fedora 36. rubygem-execjs is Run JavaScript code from Ruby

Introduction

In this tutorial we learn how to install rubygem-execjs on Fedora 36.

What is rubygem-execjs

ExecJS lets you run JavaScript code from Ruby. It automatically picks the best runtime available to evaluate your JavaScript program, then returns the result to you as a Ruby object.

We can use yum or dnf to install rubygem-execjs on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-execjs.

Install rubygem-execjs on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rubygem-execjs using dnf by running the following command:

sudo dnf -y install rubygem-execjs

Install rubygem-execjs on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rubygem-execjs using yum by running the following command:

sudo yum -y install rubygem-execjs

How To Uninstall rubygem-execjs on Fedora 36

To uninstall only the rubygem-execjs package we can use the following command:

sudo dnf remove rubygem-execjs

rubygem-execjs Package Contents on Fedora 36

/usr/share/gems/gems/execjs-2.8.1
/usr/share/gems/gems/execjs-2.8.1/MIT-LICENSE
/usr/share/gems/gems/execjs-2.8.1/lib
/usr/share/gems/gems/execjs-2.8.1/lib/execjs
/usr/share/gems/gems/execjs-2.8.1/lib/execjs.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/disabled_runtime.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/duktape_runtime.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/encoding.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/external_runtime.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/mini_racer_runtime.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/module.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/ruby_rhino_runtime.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/runtime.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/runtimes.rb
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/support
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/support/jsc_runner.js
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/support/node_runner.js
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/support/spidermonkey_runner.js
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/support/v8_runner.js
/usr/share/gems/gems/execjs-2.8.1/lib/execjs/version.rb
/usr/share/gems/specifications/execjs-2.8.1.gemspec

References

Summary

In this tutorial we learn how to install rubygem-execjs on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).