How To Install ruby-cucumber-core on Ubuntu 20.04
Introduction
In this tutorial we learn how to install ruby-cucumber-core on Ubuntu 20.04.
What is ruby-cucumber-core
ruby-cucumber-core is:
Cucumber lets software development teams describe how software should behave in plain text. The text is written in a business-readable domain-specific language and serves as documentation, automated tests and development-aid - all rolled into one format.
This package provides the core library for the Cucumber application. It contains the core domain logic to execute Cucumber features. It has no user interface, just a Ruby API. It can be used to build other tools that work with Gherkin documents. Ruby-Versions: all
There are three methods to install ruby-cucumber-core 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-cucumber-core 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-cucumber-core using apt-get by running the following command:
sudo apt-get -y install ruby-cucumber-core
Install ruby-cucumber-core Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install ruby-cucumber-core using apt by running the following command:
sudo apt -y install ruby-cucumber-core
Install ruby-cucumber-core 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-cucumber-core using aptitude by running the following command:
sudo aptitude -y install ruby-cucumber-core
How To Uninstall ruby-cucumber-core on Ubuntu 20.04
To uninstall only the ruby-cucumber-core package we can use the following command:
sudo apt-get remove ruby-cucumber-core
Uninstall ruby-cucumber-core And Its Dependencies
To uninstall ruby-cucumber-core and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove ruby-cucumber-core
Remove ruby-cucumber-core Configurations and Data
To remove ruby-cucumber-core configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge ruby-cucumber-core
Remove ruby-cucumber-core configuration, data, and all of its dependencies
We can use the following command to remove ruby-cucumber-core configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-cucumber-core
References
Summary
In this tutorial we learn how to install ruby-cucumber-core package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.