How To Install ruby-bsearch on Fedora 36
Introduction
In this tutorial we learn how to install ruby-bsearch
on Fedora 36.
What is ruby-bsearch
Ruby/Bsearch is a binary search library for Ruby. It can search the FIRST or LAST occurrence in an array with a condition given by a block.
We can use yum
or dnf
to install ruby-bsearch
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ruby-bsearch.
Install ruby-bsearch 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-bsearch
using dnf
by running the following command:
sudo dnf -y install ruby-bsearch
Install ruby-bsearch 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-bsearch
using yum
by running the following command:
sudo yum -y install ruby-bsearch
How To Uninstall ruby-bsearch on Fedora 36
To uninstall only the ruby-bsearch
package we can use the following command:
sudo dnf remove ruby-bsearch
ruby-bsearch Package Contents on Fedora 36
/usr/share/doc/ruby-bsearch
/usr/share/doc/ruby-bsearch/ChangeLog
/usr/share/doc/ruby-bsearch/bsearch.en.rd
/usr/share/doc/ruby-bsearch/bsearch.ja.rd
/usr/share/doc/ruby-bsearch/bsearch.png
/usr/share/ruby/vendor_ruby/bsearch.rb
References
Summary
In this tutorial we learn how to install ruby-bsearch
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).