How To Install rubygem-rack on CentOS 8
Introduction
In this tutorial we learn how to install rubygem-rack
on CentOS 8.
What is rubygem-rack
Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call. Also see https
We can use yum
or dnf
to install rubygem-rack
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-rack.
Install rubygem-rack 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-rack
using dnf
by running the following command:
sudo dnf -y install rubygem-rack
Install rubygem-rack 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-rack
using yum
by running the following command:
sudo yum -y install rubygem-rack
How To Uninstall rubygem-rack on CentOS 8
To uninstall only the rubygem-rack
package we can use the following command:
sudo dnf remove rubygem-rack
rubygem-rack Package Contents on CentOS 8
/usr/bin/rackup
/usr/share/gems/gems/rack-2.2.2
/usr/share/gems/gems/rack-2.2.2/MIT-LICENSE
/usr/share/gems/gems/rack-2.2.2/bin
/usr/share/gems/gems/rack-2.2.2/bin/rackup
/usr/share/gems/gems/rack-2.2.2/lib
/usr/share/gems/gems/rack-2.2.2/lib/rack
/usr/share/gems/gems/rack-2.2.2/lib/rack.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth/abstract
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth/abstract/handler.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth/abstract/request.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth/basic.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth/digest
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth/digest/md5.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth/digest/nonce.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth/digest/params.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/auth/digest/request.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/body_proxy.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/builder.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/cascade.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/chunked.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/common_logger.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/conditional_get.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/config.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/content_length.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/content_type.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/core_ext
/usr/share/gems/gems/rack-2.2.2/lib/rack/core_ext/regexp.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/deflater.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/directory.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/etag.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/events.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/file.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/files.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/handler
/usr/share/gems/gems/rack-2.2.2/lib/rack/handler.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/handler/cgi.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/handler/fastcgi.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/handler/lsws.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/handler/scgi.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/handler/thin.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/handler/webrick.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/head.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/lint.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/lobster.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/lock.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/logger.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/media_type.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/method_override.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/mime.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/mock.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/multipart
/usr/share/gems/gems/rack-2.2.2/lib/rack/multipart.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/multipart/generator.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/multipart/parser.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/multipart/uploaded_file.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/null_logger.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/query_parser.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/recursive.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/reloader.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/request.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/response.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/rewindable_input.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/runtime.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/sendfile.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/server.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/session
/usr/share/gems/gems/rack-2.2.2/lib/rack/session/abstract
/usr/share/gems/gems/rack-2.2.2/lib/rack/session/abstract/id.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/session/cookie.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/session/memcache.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/session/pool.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/show_exceptions.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/show_status.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/static.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/tempfile_reaper.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/urlmap.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/utils.rb
/usr/share/gems/gems/rack-2.2.2/lib/rack/version.rb
/usr/share/gems/specifications/rack-2.2.2.gemspec
References
Summary
In this tutorial we learn how to install rubygem-rack
on CentOS 8 using yum and dnf.