How To Install rubygem-openssl on Rocky Linux 8

In this tutorial we learn how to install rubygem-openssl on Rocky Linux 8. rubygem-openssl is OpenSSL provides SSL, TLS and general purpose cryptography

Introduction

In this tutorial we learn how to install rubygem-openssl on Rocky Linux 8.

What is rubygem-openssl

OpenSSL provides SSL, TLS and general purpose cryptography. It wraps the OpenSSL library.

We can use yum or dnf to install rubygem-openssl on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-openssl.

Install rubygem-openssl on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rubygem-openssl using dnf by running the following command:

sudo dnf -y install rubygem-openssl

Install rubygem-openssl on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rubygem-openssl using yum by running the following command:

sudo yum -y install rubygem-openssl

How To Uninstall rubygem-openssl on Rocky Linux 8

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

sudo dnf remove rubygem-openssl

rubygem-openssl Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/bbdc2c89ad9c8fbee291059e57d71fc911b895
/usr/lib64/gems/ruby/openssl-2.1.2
/usr/lib64/gems/ruby/openssl-2.1.2/openssl.so
/usr/lib64/ruby/openssl.so
/usr/share/gems/gems/openssl-2.1.2
/usr/share/gems/gems/openssl-2.1.2/lib
/usr/share/gems/gems/openssl-2.1.2/lib/openssl
/usr/share/gems/gems/openssl-2.1.2/lib/openssl.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/bn.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/buffering.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/cipher.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/config.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/digest.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/pkcs5.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/pkey.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/ssl.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/x509.rb
/usr/share/gems/specifications/openssl-2.1.2.gemspec
/usr/share/ruby/openssl
/usr/share/ruby/openssl.rb
/usr/share/ruby/openssl/bn.rb
/usr/share/ruby/openssl/buffering.rb
/usr/share/ruby/openssl/cipher.rb
/usr/share/ruby/openssl/config.rb
/usr/share/ruby/openssl/digest.rb
/usr/share/ruby/openssl/pkcs5.rb
/usr/share/ruby/openssl/pkey.rb
/usr/share/ruby/openssl/ssl.rb
/usr/share/ruby/openssl/x509.rb
/usr/lib/.build-id
/usr/lib/.build-id/4d/687f2f14a8e6738e00dc61a26b7bcc2cf18376
/usr/lib/gems/ruby/openssl-2.1.2
/usr/lib/gems/ruby/openssl-2.1.2/openssl.so
/usr/lib/ruby/openssl.so
/usr/share/gems/gems/openssl-2.1.2
/usr/share/gems/gems/openssl-2.1.2/lib
/usr/share/gems/gems/openssl-2.1.2/lib/openssl
/usr/share/gems/gems/openssl-2.1.2/lib/openssl.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/bn.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/buffering.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/cipher.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/config.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/digest.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/pkcs5.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/pkey.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/ssl.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/x509.rb
/usr/share/gems/specifications/openssl-2.1.2.gemspec
/usr/share/ruby/openssl
/usr/share/ruby/openssl.rb
/usr/share/ruby/openssl/bn.rb
/usr/share/ruby/openssl/buffering.rb
/usr/share/ruby/openssl/cipher.rb
/usr/share/ruby/openssl/config.rb
/usr/share/ruby/openssl/digest.rb
/usr/share/ruby/openssl/pkcs5.rb
/usr/share/ruby/openssl/pkey.rb
/usr/share/ruby/openssl/ssl.rb
/usr/share/ruby/openssl/x509.rb
/usr/lib/.build-id
/usr/lib/.build-id/76
/usr/lib/.build-id/76/529b28df1551e4f64cc8fc928a8eb0f3ab00e0
/usr/lib64/gems/ruby/openssl-2.1.2
/usr/lib64/gems/ruby/openssl-2.1.2/openssl.so
/usr/lib64/ruby/openssl.so
/usr/share/gems/gems/openssl-2.1.2
/usr/share/gems/gems/openssl-2.1.2/lib
/usr/share/gems/gems/openssl-2.1.2/lib/openssl
/usr/share/gems/gems/openssl-2.1.2/lib/openssl.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/bn.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/buffering.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/cipher.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/config.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/digest.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/pkcs5.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/pkey.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/ssl.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/x509.rb
/usr/share/gems/specifications/openssl-2.1.2.gemspec
/usr/share/ruby/openssl
/usr/share/ruby/openssl.rb
/usr/share/ruby/openssl/bn.rb
/usr/share/ruby/openssl/buffering.rb
/usr/share/ruby/openssl/cipher.rb
/usr/share/ruby/openssl/config.rb
/usr/share/ruby/openssl/digest.rb
/usr/share/ruby/openssl/pkcs5.rb
/usr/share/ruby/openssl/pkey.rb
/usr/share/ruby/openssl/ssl.rb
/usr/share/ruby/openssl/x509.rb
/usr/lib/.build-id
/usr/lib/.build-id/80
/usr/lib/.build-id/80/9e58f61a75888bbfa9894efaeaefb265fdfdbd
/usr/lib/gems/ruby/openssl-2.1.2
/usr/lib/gems/ruby/openssl-2.1.2/openssl.so
/usr/lib/ruby/openssl.so
/usr/share/gems/gems/openssl-2.1.2
/usr/share/gems/gems/openssl-2.1.2/lib
/usr/share/gems/gems/openssl-2.1.2/lib/openssl
/usr/share/gems/gems/openssl-2.1.2/lib/openssl.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/bn.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/buffering.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/cipher.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/config.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/digest.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/pkcs5.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/pkey.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/ssl.rb
/usr/share/gems/gems/openssl-2.1.2/lib/openssl/x509.rb
/usr/share/gems/specifications/openssl-2.1.2.gemspec
/usr/share/ruby/openssl
/usr/share/ruby/openssl.rb
/usr/share/ruby/openssl/bn.rb
/usr/share/ruby/openssl/buffering.rb
/usr/share/ruby/openssl/cipher.rb
/usr/share/ruby/openssl/config.rb
/usr/share/ruby/openssl/digest.rb
/usr/share/ruby/openssl/pkcs5.rb
/usr/share/ruby/openssl/pkey.rb
/usr/share/ruby/openssl/ssl.rb
/usr/share/ruby/openssl/x509.rb

References

Summary

In this tutorial we learn how to install rubygem-openssl on Rocky Linux 8 using yum and dnf.