How To Install ruby-ncurses on Fedora 36

In this tutorial we learn how to install ruby-ncurses in Fedora 36. ruby-ncurses is A module for ruby applications for using ncurses interfaces

Introduction

In this tutorial we learn how to install ruby-ncurses on Fedora 36.

What is ruby-ncurses

This ruby extension makes most functions, constants, and external variables of the C library ncurses accessible from the Ruby programming language.

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

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

sudo dnf -y install ruby-ncurses

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

sudo yum -y install ruby-ncurses

How To Uninstall ruby-ncurses on Fedora 36

To uninstall only the ruby-ncurses package we can use the following command:

sudo dnf remove ruby-ncurses

ruby-ncurses Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/56
/usr/lib/.build-id/56/bbbb8304f568348a14baff53d034f7344fff22
/usr/lib64/ruby/vendor_ruby/ncurses_bin.so
/usr/share/doc/ruby-ncurses
/usr/share/doc/ruby-ncurses/COPYING
/usr/share/doc/ruby-ncurses/Changes
/usr/share/doc/ruby-ncurses/README
/usr/share/doc/ruby-ncurses/THANKS
/usr/share/doc/ruby-ncurses/VERSION
/usr/share/doc/ruby-ncurses/examples
/usr/share/doc/ruby-ncurses/examples/LICENSES_for_examples
/usr/share/doc/ruby-ncurses/examples/example.rb
/usr/share/doc/ruby-ncurses/examples/form.rb
/usr/share/doc/ruby-ncurses/examples/form2.rb
/usr/share/doc/ruby-ncurses/examples/hello_ncurses.rb
/usr/share/doc/ruby-ncurses/examples/rain.rb
/usr/share/doc/ruby-ncurses/examples/read_line.rb
/usr/share/doc/ruby-ncurses/examples/tclock.rb
/usr/share/doc/ruby-ncurses/examples/test_scanw.rb
/usr/share/ruby/vendor_ruby/ncurses.rb
/usr/share/ruby/vendor_ruby/ncurses_sugar.rb

References

Summary

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