How To Install rubygem-crass on Fedora 36

In this tutorial we learn how to install rubygem-crass in Fedora 36. rubygem-crass is CSS parser based on the CSS Syntax Level 3 spec

Introduction

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

What is rubygem-crass

Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.

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

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

sudo dnf -y install rubygem-crass

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

sudo yum -y install rubygem-crass

How To Uninstall rubygem-crass on Fedora 36

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

sudo dnf remove rubygem-crass

rubygem-crass Package Contents on Fedora 36

/usr/share/gems/gems/crass-1.0.4
/usr/share/gems/gems/crass-1.0.4/LICENSE
/usr/share/gems/gems/crass-1.0.4/lib
/usr/share/gems/gems/crass-1.0.4/lib/crass
/usr/share/gems/gems/crass-1.0.4/lib/crass.rb
/usr/share/gems/gems/crass-1.0.4/lib/crass/parser.rb
/usr/share/gems/gems/crass-1.0.4/lib/crass/scanner.rb
/usr/share/gems/gems/crass-1.0.4/lib/crass/token-scanner.rb
/usr/share/gems/gems/crass-1.0.4/lib/crass/tokenizer.rb
/usr/share/gems/gems/crass-1.0.4/lib/crass/version.rb
/usr/share/gems/specifications/crass-1.0.4.gemspec

References

Summary

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