How To Install rubygem-rake on CentOS 8

rubygem-rake is Ruby based make-like utility

Introduction

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

What is rubygem-rake

Rake is a Make-like program implemented in Ruby. Tasks and dependencies are specified in standard Ruby syntax.

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

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

sudo dnf -y install rubygem-rake

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

sudo yum -y install rubygem-rake

How To Uninstall rubygem-rake on CentOS 8

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

sudo dnf remove rubygem-rake

rubygem-rake Package Contents on CentOS 8

/usr/bin/rake
/usr/share/gems/gems/rake-12.3.0
/usr/share/gems/gems/rake-12.3.0/.gitignore
/usr/share/gems/gems/rake-12.3.0/CONTRIBUTING.rdoc
/usr/share/gems/gems/rake-12.3.0/Gemfile
/usr/share/gems/gems/rake-12.3.0/History.rdoc
/usr/share/gems/gems/rake-12.3.0/MIT-LICENSE
/usr/share/gems/gems/rake-12.3.0/README.rdoc
/usr/share/gems/gems/rake-12.3.0/Rakefile
/usr/share/gems/gems/rake-12.3.0/bin
/usr/share/gems/gems/rake-12.3.0/bin/console
/usr/share/gems/gems/rake-12.3.0/bin/setup
/usr/share/gems/gems/rake-12.3.0/doc
/usr/share/gems/gems/rake-12.3.0/doc/command_line_usage.rdoc
/usr/share/gems/gems/rake-12.3.0/doc/example
/usr/share/gems/gems/rake-12.3.0/doc/example/Rakefile1
/usr/share/gems/gems/rake-12.3.0/doc/example/Rakefile2
/usr/share/gems/gems/rake-12.3.0/doc/example/a.c
/usr/share/gems/gems/rake-12.3.0/doc/example/b.c
/usr/share/gems/gems/rake-12.3.0/doc/example/main.c
/usr/share/gems/gems/rake-12.3.0/doc/glossary.rdoc
/usr/share/gems/gems/rake-12.3.0/doc/jamis.rb
/usr/share/gems/gems/rake-12.3.0/doc/proto_rake.rdoc
/usr/share/gems/gems/rake-12.3.0/doc/rakefile.rdoc
/usr/share/gems/gems/rake-12.3.0/doc/rational.rdoc
/usr/share/gems/gems/rake-12.3.0/exe
/usr/share/gems/gems/rake-12.3.0/exe/rake
/usr/share/gems/gems/rake-12.3.0/lib
/usr/share/gems/gems/rake-12.3.0/lib/rake
/usr/share/gems/gems/rake-12.3.0/lib/rake.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/backtrace.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/clean.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/cloneable.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/cpu_counter.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/default_loader.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/dsl_definition.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/early_time.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/ext
/usr/share/gems/gems/rake-12.3.0/lib/rake/ext/core.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/ext/string.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/file_creation_task.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/file_list.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/file_task.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/file_utils.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/file_utils_ext.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/invocation_chain.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/invocation_exception_mixin.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/late_time.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/linked_list.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/loaders
/usr/share/gems/gems/rake-12.3.0/lib/rake/loaders/makefile.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/multi_task.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/name_space.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/packagetask.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/phony.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/private_reader.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/promise.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/pseudo_status.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/rake_module.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/rake_test_loader.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/rule_recursion_overflow_error.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/scope.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/task_argument_error.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/task_arguments.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/task_manager.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/tasklib.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/testtask.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/thread_history_display.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/thread_pool.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/trace_output.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/version.rb
/usr/share/gems/gems/rake-12.3.0/lib/rake/win32.rb
/usr/share/gems/gems/rake-12.3.0/rake.gemspec
/usr/share/gems/specifications/rake-12.3.0.gemspec
/usr/share/man/man1/rake.1.gz
/usr/bin/rake
/usr/share/gems/gems/rake-12.3.3
/usr/share/gems/gems/rake-12.3.3/CONTRIBUTING.rdoc
/usr/share/gems/gems/rake-12.3.3/Gemfile
/usr/share/gems/gems/rake-12.3.3/History.rdoc
/usr/share/gems/gems/rake-12.3.3/MIT-LICENSE
/usr/share/gems/gems/rake-12.3.3/README.rdoc
/usr/share/gems/gems/rake-12.3.3/Rakefile
/usr/share/gems/gems/rake-12.3.3/azure-pipelines.yml
/usr/share/gems/gems/rake-12.3.3/bin
/usr/share/gems/gems/rake-12.3.3/bin/bundle
/usr/share/gems/gems/rake-12.3.3/bin/console
/usr/share/gems/gems/rake-12.3.3/bin/rake
/usr/share/gems/gems/rake-12.3.3/bin/rdoc
/usr/share/gems/gems/rake-12.3.3/bin/rubocop
/usr/share/gems/gems/rake-12.3.3/bin/setup
/usr/share/gems/gems/rake-12.3.3/doc
/usr/share/gems/gems/rake-12.3.3/doc/command_line_usage.rdoc
/usr/share/gems/gems/rake-12.3.3/doc/example
/usr/share/gems/gems/rake-12.3.3/doc/example/Rakefile1
/usr/share/gems/gems/rake-12.3.3/doc/example/Rakefile2
/usr/share/gems/gems/rake-12.3.3/doc/example/a.c
/usr/share/gems/gems/rake-12.3.3/doc/example/b.c
/usr/share/gems/gems/rake-12.3.3/doc/example/main.c
/usr/share/gems/gems/rake-12.3.3/doc/glossary.rdoc
/usr/share/gems/gems/rake-12.3.3/doc/jamis.rb
/usr/share/gems/gems/rake-12.3.3/doc/proto_rake.rdoc
/usr/share/gems/gems/rake-12.3.3/doc/rakefile.rdoc
/usr/share/gems/gems/rake-12.3.3/doc/rational.rdoc
/usr/share/gems/gems/rake-12.3.3/exe
/usr/share/gems/gems/rake-12.3.3/exe/rake
/usr/share/gems/gems/rake-12.3.3/lib
/usr/share/gems/gems/rake-12.3.3/lib/rake
/usr/share/gems/gems/rake-12.3.3/lib/rake.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/application.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/backtrace.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/clean.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/cloneable.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/cpu_counter.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/default_loader.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/dsl_definition.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/early_time.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/ext
/usr/share/gems/gems/rake-12.3.3/lib/rake/ext/core.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/ext/string.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/file_creation_task.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/file_list.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/file_task.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/file_utils.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/file_utils_ext.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/invocation_chain.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/invocation_exception_mixin.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/late_time.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/linked_list.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/loaders
/usr/share/gems/gems/rake-12.3.3/lib/rake/loaders/makefile.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/multi_task.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/name_space.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/packagetask.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/phony.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/private_reader.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/promise.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/pseudo_status.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/rake_module.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/rake_test_loader.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/rule_recursion_overflow_error.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/scope.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/task.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/task_argument_error.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/task_arguments.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/task_manager.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/tasklib.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/testtask.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/thread_history_display.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/thread_pool.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/trace_output.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/version.rb
/usr/share/gems/gems/rake-12.3.3/lib/rake/win32.rb
/usr/share/gems/gems/rake-12.3.3/rake.gemspec
/usr/share/gems/specifications/rake-12.3.3.gemspec
/usr/share/man/man1/rake.1.gz

References

Summary

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