How To Install rubygem-ansi on Fedora 36

In this tutorial we learn how to install rubygem-ansi in Fedora 36. rubygem-ansi is ANSI at your fingertips!

Introduction

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

What is rubygem-ansi

The ANSI project is a superlative collection of ANSI escape code related libraries enabling ANSI colorization and styling of console output. Byte for byte ANSI is the best ANSI code library available for the Ruby programming language.

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

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

sudo dnf -y install rubygem-ansi

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

sudo yum -y install rubygem-ansi

How To Uninstall rubygem-ansi on Fedora 36

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

sudo dnf remove rubygem-ansi

rubygem-ansi Package Contents on Fedora 36

/usr/share/gems/gems/ansi-1.5.0
/usr/share/gems/gems/ansi-1.5.0/LICENSE.txt
/usr/share/gems/gems/ansi-1.5.0/lib
/usr/share/gems/gems/ansi-1.5.0/lib/ansi
/usr/share/gems/gems/ansi-1.5.0/lib/ansi.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi.yml
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/bbcode.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/chain.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/chart.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/code.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/columns.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/constants.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/core.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/diff.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/hexdump.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/logger.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/mixin.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/progressbar.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/string.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/table.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/terminal
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/terminal.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/terminal/curses.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/terminal/stty.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/terminal/termios.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/terminal/win32.rb
/usr/share/gems/gems/ansi-1.5.0/lib/ansi/version.rb
/usr/share/gems/specifications/ansi-1.5.0.gemspec

References

Summary

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