How To Install ruby-rubocop-rspec on Ubuntu 20.04
Introduction
In this tutorial we learn how to install ruby-rubocop-rspec
on Ubuntu 20.04.
What is ruby-rubocop-rspec
ruby-rubocop-rspec is:
ruby-rubocop-rspec is Ruby library that provides RSpec-specific analysis for your projects, as an extension to RuboCop.
Rubocop is a Ruby static code analyzer based on the community Ruby style guide. Ruby-Versions: all
There are three methods to install ruby-rubocop-rspec
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-rubocop-rspec 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-rubocop-rspec
using apt-get
by running the following command:
sudo apt-get -y install ruby-rubocop-rspec
Install ruby-rubocop-rspec Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-rubocop-rspec
using apt
by running the following command:
sudo apt -y install ruby-rubocop-rspec
Install ruby-rubocop-rspec 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-rubocop-rspec
using aptitude
by running the following command:
sudo aptitude -y install ruby-rubocop-rspec
How To Uninstall ruby-rubocop-rspec on Ubuntu 20.04
To uninstall only the ruby-rubocop-rspec
package we can use the following command:
sudo apt-get remove ruby-rubocop-rspec
Uninstall ruby-rubocop-rspec And Its Dependencies
To uninstall ruby-rubocop-rspec
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove ruby-rubocop-rspec
Remove ruby-rubocop-rspec Configurations and Data
To remove ruby-rubocop-rspec
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge ruby-rubocop-rspec
Remove ruby-rubocop-rspec configuration, data, and all of its dependencies
We can use the following command to remove ruby-rubocop-rspec
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-rubocop-rspec
References
Summary
In this tutorial we learn how to install ruby-rubocop-rspec
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.