How To Install ruby-derailed-benchmarks on Ubuntu 22.04
Introduction
In this tutorial we learn how to install ruby-derailed-benchmarks on Ubuntu 22.04.
What is ruby-derailed-benchmarks
ruby-derailed-benchmarks is:
A series of things you can use to benchmark a Rails or Ruby app.
There are two ways to benchmark an app. Derailed can either try to boot your web app and run requests against it while benchmarking, or it can statically give you more information about the dependencies that are in your Gemfile. Booting your app will always be more accurate, but if you cannot get your app to run in production locally, you’ll still find the static information useful.
There are three methods to install ruby-derailed-benchmarks on Ubuntu 22.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-derailed-benchmarks 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-derailed-benchmarks using apt-get by running the following command:
sudo apt-get -y install ruby-derailed-benchmarks
Install ruby-derailed-benchmarks Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install ruby-derailed-benchmarks using apt by running the following command:
sudo apt -y install ruby-derailed-benchmarks
Install ruby-derailed-benchmarks 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-derailed-benchmarks using aptitude by running the following command:
sudo aptitude -y install ruby-derailed-benchmarks
How To Uninstall ruby-derailed-benchmarks on Ubuntu 22.04
To uninstall only the ruby-derailed-benchmarks package we can use the following command:
sudo apt-get remove ruby-derailed-benchmarks
Uninstall ruby-derailed-benchmarks And Its Dependencies
To uninstall ruby-derailed-benchmarks and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove ruby-derailed-benchmarks
Remove ruby-derailed-benchmarks Configurations and Data
To remove ruby-derailed-benchmarks configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge ruby-derailed-benchmarks
Remove ruby-derailed-benchmarks configuration, data, and all of its dependencies
We can use the following command to remove ruby-derailed-benchmarks configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-derailed-benchmarks
References
Summary
In this tutorial we learn how to install ruby-derailed-benchmarks package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.