How To Install rubygem-color on Fedora 36

In this tutorial we learn how to install rubygem-color in Fedora 36. rubygem-color is Color management with Ruby

Introduction

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

What is rubygem-color

Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace manipulation support to applications that require it. It also provides 152 named RGB colours (184 with spelling variations) that are commonly supported in HTML, SVG, and X11 applications. A technique for generating monochromatic contrasting palettes is also included. The Color library performs purely mathematical manipulation of the colours based on colour theory without reference to colour profiles (such as sRGB or Adobe RGB). For most purposes, when working with RGB and HSL colour spaces, this won’t matter. Absolute colour spaces (like CIE Lab* and XYZ) and cannot be reliably converted to relative colour spaces (like RGB) without colour profiles.

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

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

sudo dnf -y install rubygem-color

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

sudo yum -y install rubygem-color

How To Uninstall rubygem-color on Fedora 36

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

sudo dnf remove rubygem-color

rubygem-color Package Contents on Fedora 36

/usr/share/gems/gems/color-1.8
/usr/share/gems/gems/color-1.8/Licence.rdoc
/usr/share/gems/gems/color-1.8/lib
/usr/share/gems/gems/color-1.8/lib/color
/usr/share/gems/gems/color-1.8/lib/color.rb
/usr/share/gems/gems/color-1.8/lib/color/cmyk.rb
/usr/share/gems/gems/color-1.8/lib/color/css.rb
/usr/share/gems/gems/color-1.8/lib/color/grayscale.rb
/usr/share/gems/gems/color-1.8/lib/color/hsl.rb
/usr/share/gems/gems/color-1.8/lib/color/palette
/usr/share/gems/gems/color-1.8/lib/color/palette.rb
/usr/share/gems/gems/color-1.8/lib/color/palette/adobecolor.rb
/usr/share/gems/gems/color-1.8/lib/color/palette/gimp.rb
/usr/share/gems/gems/color-1.8/lib/color/palette/monocontrast.rb
/usr/share/gems/gems/color-1.8/lib/color/rgb
/usr/share/gems/gems/color-1.8/lib/color/rgb.rb
/usr/share/gems/gems/color-1.8/lib/color/rgb/colors.rb
/usr/share/gems/gems/color-1.8/lib/color/rgb/contrast.rb
/usr/share/gems/gems/color-1.8/lib/color/rgb/metallic.rb
/usr/share/gems/gems/color-1.8/lib/color/yiq.rb
/usr/share/gems/specifications/color-1.8.gemspec

References

Summary

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