How To Install rubygem-rspec-core on Rocky Linux 8

In this tutorial we learn how to install rubygem-rspec-core on Rocky Linux 8. rubygem-rspec-core is Rspec-2 runner and formatters

Introduction

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

What is rubygem-rspec-core

Behaviour Driven Development for Ruby.

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

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

sudo dnf -y install rubygem-rspec-core

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

sudo yum -y install rubygem-rspec-core

How To Uninstall rubygem-rspec-core on Rocky Linux 8

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

sudo dnf remove rubygem-rspec-core

rubygem-rspec-core Package Contents on Rocky Linux 8

/usr/bin/rspec
/usr/share/gems/gems/rspec-core-3.7.1
/usr/share/gems/gems/rspec-core-3.7.1/Changelog.md
/usr/share/gems/gems/rspec-core-3.7.1/LICENSE.md
/usr/share/gems/gems/rspec-core-3.7.1/README.md
/usr/share/gems/gems/rspec-core-3.7.1/exe
/usr/share/gems/gems/rspec-core-3.7.1/exe/rspec
/usr/share/gems/gems/rspec-core-3.7.1/lib
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/autorun.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/backtrace_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/bisect
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/bisect/coordinator.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/bisect/example_minimizer.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/bisect/runner.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/bisect/server.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/configuration_options.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/drb.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/dsl.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_status_persister.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/filter_manager.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/flat_map.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/base_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/base_text_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/bisect_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/bisect_progress_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/console_codes.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/deprecation_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/documentation_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/fallback_message_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/helpers.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/html_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/html_printer.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/html_snippet_extractor.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/json_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/profile_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/progress_formatter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/protocol.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/snippet_extractor.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/formatters/syntax_highlighter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/invocations.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/memoized_helpers.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/metadata.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/metadata_filter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/minitest_assertions_adapter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/flexmock.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/mocha.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/null.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/rr.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/rspec.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/notifications.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/option_parser.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/ordering.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/output_wrapper.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/pending.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/profiler.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/project_initializer
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/project_initializer.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/project_initializer/.rspec
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/project_initializer/spec
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/project_initializer/spec/spec_helper.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/rake_task.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/ruby_project.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/sandbox.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/set.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/shared_context.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/shared_example_group.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/shell_escape.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/test_unit_assertions_adapter.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/version.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/warnings.rb
/usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/world.rb
/usr/share/gems/specifications/rspec-core-3.7.1.gemspec

References

Summary

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