How To Install rubygem-unicode-display_width on Fedora 36

In this tutorial we learn how to install rubygem-unicode-display_width in Fedora 36. rubygem-unicode-display_width is Ruby library to determine the monospace display width of a string

Introduction

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

What is rubygem-unicode-display_width

This gem provides an API to get the monospace display width of a string, accounting for the rendered size of East Asian characters and other Unicode classes, (optionally) including emoji.

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

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

sudo dnf -y install rubygem-unicode-display_width

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

sudo yum -y install rubygem-unicode-display_width

How To Uninstall rubygem-unicode-display_width on Fedora 36

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

sudo dnf remove rubygem-unicode-display_width

rubygem-unicode-display_width Package Contents on Fedora 36

/usr/share/gems/gems/unicode-display_width-2.0.0
/usr/share/gems/gems/unicode-display_width-2.0.0/CHANGELOG.md
/usr/share/gems/gems/unicode-display_width-2.0.0/MIT-LICENSE.txt
/usr/share/gems/gems/unicode-display_width-2.0.0/README.md
/usr/share/gems/gems/unicode-display_width-2.0.0/data
/usr/share/gems/gems/unicode-display_width-2.0.0/data/display_width.marshal.gz
/usr/share/gems/gems/unicode-display_width-2.0.0/lib
/usr/share/gems/gems/unicode-display_width-2.0.0/lib/unicode
/usr/share/gems/gems/unicode-display_width-2.0.0/lib/unicode/display_width
/usr/share/gems/gems/unicode-display_width-2.0.0/lib/unicode/display_width.rb
/usr/share/gems/gems/unicode-display_width-2.0.0/lib/unicode/display_width/constants.rb
/usr/share/gems/gems/unicode-display_width-2.0.0/lib/unicode/display_width/index.rb
/usr/share/gems/gems/unicode-display_width-2.0.0/lib/unicode/display_width/no_string_ext.rb
/usr/share/gems/gems/unicode-display_width-2.0.0/lib/unicode/display_width/string_ext.rb
/usr/share/gems/specifications/unicode-display_width-2.0.0.gemspec

References

Summary

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