How To Install rubygem-uglifier on Fedora 36

In this tutorial we learn how to install rubygem-uglifier in Fedora 36. rubygem-uglifier is Ruby wrapper for UglifyJS JavaScript compressor

Introduction

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

What is rubygem-uglifier

Uglifier minifies JavaScript files by wrapping UglifyJS to be accessible in Ruby.

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

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

sudo dnf -y install rubygem-uglifier

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

sudo yum -y install rubygem-uglifier

How To Uninstall rubygem-uglifier on Fedora 36

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

sudo dnf remove rubygem-uglifier

rubygem-uglifier Package Contents on Fedora 36

/usr/share/gems/gems/uglifier-3.2.0
/usr/share/gems/gems/uglifier-3.2.0/LICENSE.txt
/usr/share/gems/gems/uglifier-3.2.0/lib
/usr/share/gems/gems/uglifier-3.2.0/lib/source-map.js
/usr/share/gems/gems/uglifier-3.2.0/lib/uglifier
/usr/share/gems/gems/uglifier-3.2.0/lib/uglifier.js
/usr/share/gems/gems/uglifier-3.2.0/lib/uglifier.rb
/usr/share/gems/gems/uglifier-3.2.0/lib/uglifier/version.rb
/usr/share/gems/gems/uglifier-3.2.0/lib/uglify-harmony.js
/usr/share/gems/gems/uglifier-3.2.0/lib/uglify.js
/usr/share/gems/specifications/uglifier-3.2.0.gemspec

References

Summary

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