How To Install ruby-rspec-pending-for on Ubuntu 20.04

In this tutorial we learn how to install ruby-rspec-pending-for on Ubuntu 20.04. ruby-rspec-pending-for is RSpec plugin to skip specs for given Ruby versions

Introduction

In this tutorial we learn how to install ruby-rspec-pending-for on Ubuntu 20.04.

What is ruby-rspec-pending-for

ruby-rspec-pending-for is:

As an RSpec plugin it allows RSpec suite authors to mark certain specs as pending or to be skipped for specific Ruby implementations (say MRI or JRuby) or some specific versions of Ruby. Ruby-Versions: all

There are three methods to install ruby-rspec-pending-for on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ruby-rspec-pending-for Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ruby-rspec-pending-for using apt-get by running the following command:

sudo apt-get -y install ruby-rspec-pending-for

Install ruby-rspec-pending-for Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby-rspec-pending-for using apt by running the following command:

sudo apt -y install ruby-rspec-pending-for

Install ruby-rspec-pending-for Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ruby-rspec-pending-for using aptitude by running the following command:

sudo aptitude -y install ruby-rspec-pending-for

How To Uninstall ruby-rspec-pending-for on Ubuntu 20.04

To uninstall only the ruby-rspec-pending-for package we can use the following command:

sudo apt-get remove ruby-rspec-pending-for

Uninstall ruby-rspec-pending-for And Its Dependencies

To uninstall ruby-rspec-pending-for and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove ruby-rspec-pending-for

Remove ruby-rspec-pending-for Configurations and Data

To remove ruby-rspec-pending-for configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge ruby-rspec-pending-for

Remove ruby-rspec-pending-for configuration, data, and all of its dependencies

We can use the following command to remove ruby-rspec-pending-for configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ruby-rspec-pending-for

References

Summary

In this tutorial we learn how to install ruby-rspec-pending-for package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.