How To Install rubygem-httpclient on CentOS 8

rubygem-httpclient is HTTP Client interface for ruby

Introduction

In this tutorial we learn how to install rubygem-httpclient on CentOS 8.

What is rubygem-httpclient

an interface to HTTP Client for the ruby language

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

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

sudo dnf -y install rubygem-httpclient

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

sudo yum -y install rubygem-httpclient

How To Uninstall rubygem-httpclient on CentOS 8

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

sudo dnf remove rubygem-httpclient

rubygem-httpclient Package Contents on CentOS 8

/usr/share/gems/gems/httpclient-2.8.0
/usr/share/gems/gems/httpclient-2.8.0/bin
/usr/share/gems/gems/httpclient-2.8.0/bin/httpclient
/usr/share/gems/gems/httpclient-2.8.0/bin/jsonclient
/usr/share/gems/gems/httpclient-2.8.0/lib
/usr/share/gems/gems/httpclient-2.8.0/lib/hexdump.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/http-access2
/usr/share/gems/gems/httpclient-2.8.0/lib/http-access2.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/http-access2/cookie.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/http-access2/http.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/auth.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/cacert.pem
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/cacert1024.pem
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/connection.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/cookie.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/http.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/include_client.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/jruby_ssl_socket.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/session.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/ssl_config.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/ssl_socket.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/timeout.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/util.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/version.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/httpclient/webagent-cookie.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/jsonclient.rb
/usr/share/gems/gems/httpclient-2.8.0/lib/oauthclient.rb
/usr/share/gems/gems/httpclient-2.8.0/sample
/usr/share/gems/gems/httpclient-2.8.0/sample/async.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/auth.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/cookie.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/dav.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/howto.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/jsonclient.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/oauth_buzz.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/oauth_friendfeed.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/oauth_twitter.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/ssl
/usr/share/gems/gems/httpclient-2.8.0/sample/ssl/0cert.pem
/usr/share/gems/gems/httpclient-2.8.0/sample/ssl/0key.pem
/usr/share/gems/gems/httpclient-2.8.0/sample/ssl/1000cert.pem
/usr/share/gems/gems/httpclient-2.8.0/sample/ssl/1000key.pem
/usr/share/gems/gems/httpclient-2.8.0/sample/ssl/htdocs
/usr/share/gems/gems/httpclient-2.8.0/sample/ssl/htdocs/index.html
/usr/share/gems/gems/httpclient-2.8.0/sample/ssl/ssl_client.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/ssl/webrick_httpsd.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/stream.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/thread.rb
/usr/share/gems/gems/httpclient-2.8.0/sample/wcat.rb
/usr/share/gems/specifications/httpclient-2.8.0.gemspec

References

Summary

In this tutorial we learn how to install rubygem-httpclient on CentOS 8 using yum and dnf.