How To Install ruby-dependor on Ubuntu 18.04
Introduction
In this tutorial we learn how to install ruby-dependor on Ubuntu 18.04.
What is ruby-dependor
ruby-dependor is:
Dependor is a set of helpers that make writing Ruby apps that use the dependency injection pattern easier. It comes as a set of modules, which you can selectively add to your project. It is designed do play nice with Rails and similar frameworks.
There are three methods to install ruby-dependor on Ubuntu 18.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-dependor 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-dependor using apt-get by running the following command:
sudo apt-get -y install ruby-dependor
Install ruby-dependor Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install ruby-dependor using apt by running the following command:
sudo apt -y install ruby-dependor
Install ruby-dependor 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-dependor using aptitude by running the following command:
sudo aptitude -y install ruby-dependor
How To Uninstall ruby-dependor on Ubuntu 18.04
To uninstall only the ruby-dependor package we can use the following command:
sudo apt-get remove ruby-dependor
Uninstall ruby-dependor And Its Dependencies
To uninstall ruby-dependor and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove ruby-dependor
Remove ruby-dependor Configurations and Data
To remove ruby-dependor configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge ruby-dependor
Remove ruby-dependor configuration, data, and all of its dependencies
We can use the following command to remove ruby-dependor configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-dependor
References
Summary
In this tutorial we learn how to install ruby-dependor package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.