How To Install rubygem-minitest on CentOS 8
Introduction
In this tutorial we learn how to install rubygem-minitest
on CentOS 8.
What is rubygem-minitest
minitest/unit is a small and incredibly fast unit testing framework. minitest/spec is a functionally complete spec engine. minitest/benchmark is an awesome way to assert the performance of your algorithms in a repeatable manner. minitest/mock by Steven Baker, is a beautifully tiny mock object framework. minitest/pride shows pride in testing and adds coloring to your test output.
We can use yum
or dnf
to install rubygem-minitest
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-minitest.
Install rubygem-minitest 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-minitest
using dnf
by running the following command:
sudo dnf -y install rubygem-minitest
Install rubygem-minitest 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-minitest
using yum
by running the following command:
sudo yum -y install rubygem-minitest
How To Uninstall rubygem-minitest on CentOS 8
To uninstall only the rubygem-minitest
package we can use the following command:
sudo dnf remove rubygem-minitest
rubygem-minitest Package Contents on CentOS 8
/usr/share/gems/gems/minitest-5.10.3
/usr/share/gems/gems/minitest-5.10.3/History.rdoc
/usr/share/gems/gems/minitest-5.10.3/Manifest.txt
/usr/share/gems/gems/minitest-5.10.3/README.rdoc
/usr/share/gems/gems/minitest-5.10.3/Rakefile
/usr/share/gems/gems/minitest-5.10.3/design_rationale.rb
/usr/share/gems/gems/minitest-5.10.3/lib
/usr/share/gems/gems/minitest-5.10.3/lib/hoe
/usr/share/gems/gems/minitest-5.10.3/lib/hoe/minitest.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest
/usr/share/gems/gems/minitest-5.10.3/lib/minitest.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/assertions.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/autorun.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/benchmark.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/expectations.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/hell.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/mock.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/parallel.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/pride.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/pride_plugin.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/spec.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/test.rb
/usr/share/gems/gems/minitest-5.10.3/lib/minitest/unit.rb
/usr/share/gems/gems/minitest-5.10.3/test
/usr/share/gems/gems/minitest-5.10.3/test/minitest
/usr/share/gems/gems/minitest-5.10.3/test/minitest/metametameta.rb
/usr/share/gems/gems/minitest-5.10.3/test/minitest/test_minitest_benchmark.rb
/usr/share/gems/gems/minitest-5.10.3/test/minitest/test_minitest_mock.rb
/usr/share/gems/gems/minitest-5.10.3/test/minitest/test_minitest_reporter.rb
/usr/share/gems/gems/minitest-5.10.3/test/minitest/test_minitest_spec.rb
/usr/share/gems/gems/minitest-5.10.3/test/minitest/test_minitest_test.rb
/usr/share/gems/specifications/minitest-5.10.3.gemspec
References
Summary
In this tutorial we learn how to install rubygem-minitest
on CentOS 8 using yum and dnf.