How To Install rubygem-simplecov on CentOS 8

rubygem-simplecov is Code coverage analysis tool for Ruby 1.9

Introduction

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

What is rubygem-simplecov

Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites

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

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

sudo dnf -y install rubygem-simplecov

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

sudo yum -y install rubygem-simplecov

How To Uninstall rubygem-simplecov on CentOS 8

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

sudo dnf remove rubygem-simplecov

rubygem-simplecov Package Contents on CentOS 8

/usr/share/gems/gems/simplecov-0.13.0
/usr/share/gems/gems/simplecov-0.13.0/MIT-LICENSE
/usr/share/gems/gems/simplecov-0.13.0/cucumber.yml
/usr/share/gems/gems/simplecov-0.13.0/features
/usr/share/gems/gems/simplecov-0.13.0/features/config_autoload.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_command_name.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_coverage_dir.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_deactivate_merging.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_formatters.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_merge_timeout.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_nocov_token.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_profiles.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_project_name.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_styles.feature
/usr/share/gems/gems/simplecov-0.13.0/features/config_tracked_files.feature
/usr/share/gems/gems/simplecov-0.13.0/features/cucumber_basic.feature
/usr/share/gems/gems/simplecov-0.13.0/features/maximum_coverage_drop.feature
/usr/share/gems/gems/simplecov-0.13.0/features/merging_test_unit_and_rspec.feature
/usr/share/gems/gems/simplecov-0.13.0/features/minimum_coverage.feature
/usr/share/gems/gems/simplecov-0.13.0/features/refuse_coverage_drop.feature
/usr/share/gems/gems/simplecov-0.13.0/features/rspec_basic.feature
/usr/share/gems/gems/simplecov-0.13.0/features/rspec_fails_on_initialization.feature
/usr/share/gems/gems/simplecov-0.13.0/features/rspec_groups_and_filters_basic.feature
/usr/share/gems/gems/simplecov-0.13.0/features/rspec_groups_and_filters_complex.feature
/usr/share/gems/gems/simplecov-0.13.0/features/rspec_groups_using_filter_class.feature
/usr/share/gems/gems/simplecov-0.13.0/features/rspec_without_simplecov.feature
/usr/share/gems/gems/simplecov-0.13.0/features/skipping_code_blocks_manually.feature
/usr/share/gems/gems/simplecov-0.13.0/features/step_definitions
/usr/share/gems/gems/simplecov-0.13.0/features/step_definitions/html_steps.rb
/usr/share/gems/gems/simplecov-0.13.0/features/step_definitions/simplecov_steps.rb
/usr/share/gems/gems/simplecov-0.13.0/features/step_definitions/transformers.rb
/usr/share/gems/gems/simplecov-0.13.0/features/step_definitions/web_steps.rb
/usr/share/gems/gems/simplecov-0.13.0/features/support
/usr/share/gems/gems/simplecov-0.13.0/features/support/env.rb
/usr/share/gems/gems/simplecov-0.13.0/features/test_unit_basic.feature
/usr/share/gems/gems/simplecov-0.13.0/features/test_unit_groups_and_filters_basic.feature
/usr/share/gems/gems/simplecov-0.13.0/features/test_unit_groups_and_filters_complex.feature
/usr/share/gems/gems/simplecov-0.13.0/features/test_unit_groups_using_filter_class.feature
/usr/share/gems/gems/simplecov-0.13.0/features/test_unit_without_simplecov.feature
/usr/share/gems/gems/simplecov-0.13.0/features/unicode_compatiblity.feature
/usr/share/gems/gems/simplecov-0.13.0/lib
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/command_guesser.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/configuration.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/defaults.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/exit_codes.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/file_list.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/filter.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/formatter
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/formatter.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/formatter/multi_formatter.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/formatter/simple_formatter.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/jruby_fix.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/last_run.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/merge_helpers.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/no_defaults.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/profiles.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/railtie.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/railties
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/railties/tasks.rake
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/result.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/result_merger.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/source_file.rb
/usr/share/gems/gems/simplecov-0.13.0/lib/simplecov/version.rb
/usr/share/gems/specifications/simplecov-0.13.0.gemspec

References

Summary

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