How To Install rubygem-openssl on CentOS 8
Introduction
In this tutorial we learn how to install rubygem-openssl
on CentOS 8.
What is rubygem-openssl
OpenSSL provides SSL, TLS and general purpose cryptography. It wraps the OpenSSL library. rubygem-openssl 2.1.2 107.module_el8.4.0+847+ee687b6c x86_64 189 k ruby-2.5.9-107.module_el8.4.0+847+ee687b6c.src.rpm appstream OpenSSL provides SSL, TLS and general purpose cryptography http Ruby or BSD OpenSSL provides SSL, TLS and general purpose cryptography. It wraps the OpenSSL library.
We can use yum
or dnf
to install rubygem-openssl
on CentOS 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 CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the rubygem-openssl
package we can use the following command:
sudo dnf remove rubygem-openssl
rubygem-openssl Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/99
/usr/lib/.build-id/99/e1bc840a93f394cad4c994712a22d66d860202
/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/b6
/usr/lib/.build-id/b6/7367fafa2143e9508658ff188ad4420eb29f79
/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/ba
/usr/lib/.build-id/ba/0fc3101c76c56926c5a091698fbe214d41dd63
/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/fa/0dad61472499235d25686a4c0a0a058302f23b
/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
References
- [rubygem-openssl website](http://ruby-lang.org/ http://ruby-lang.org/)
Summary
In this tutorial we learn how to install rubygem-openssl
on CentOS 8 using yum and dnf.