How To Install rubygem-bcrypt on Fedora 36

In this tutorial we learn how to install rubygem-bcrypt in Fedora 36. rubygem-bcrypt is Wrapper around bcrypt() password hashing algorithm

Introduction

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

What is rubygem-bcrypt

bcrypt() is a sophisticated and secure hash algorithm designed by The OpenBSD project for hashing passwords. bcrypt-ruby provides a simple, humane wrapper for safely handling passwords.

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

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

sudo dnf -y install rubygem-bcrypt

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

sudo yum -y install rubygem-bcrypt

How To Uninstall rubygem-bcrypt on Fedora 36

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

sudo dnf remove rubygem-bcrypt

rubygem-bcrypt Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/81f28324bd2a55d54f2b85966aaf4dbf7170c6
/usr/lib64/gems/ruby/bcrypt-3.1.16
/usr/lib64/gems/ruby/bcrypt-3.1.16/bcrypt_ext.so
/usr/lib64/gems/ruby/bcrypt-3.1.16/gem.build_complete
/usr/share/gems/gems/bcrypt-3.1.16
/usr/share/gems/gems/bcrypt-3.1.16/COPYING
/usr/share/gems/gems/bcrypt-3.1.16/lib
/usr/share/gems/gems/bcrypt-3.1.16/lib/bcrypt
/usr/share/gems/gems/bcrypt-3.1.16/lib/bcrypt.rb
/usr/share/gems/gems/bcrypt-3.1.16/lib/bcrypt/engine.rb
/usr/share/gems/gems/bcrypt-3.1.16/lib/bcrypt/error.rb
/usr/share/gems/gems/bcrypt-3.1.16/lib/bcrypt/password.rb
/usr/share/gems/specifications/bcrypt-3.1.16.gemspec

References

Summary

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