How To Install capistrano on Debian 9
Introduction
In this tutorial we learn how to install capistrano on Debian 9.
What is capistrano
capistrano is:
Capistrano is great for automating tasks via SSH on remote servers, like software installation, application deployment, configuration management, ad hoc server monitoring, and more. Ideal for system administrators, whether professional or incidental. Easy to customize. Its configuration files use the Ruby programming language syntax, but you don’t need to know Ruby to do most things with Capistrano.
Capistrano is easy to extend. It’s written in the Ruby programming language, and may be extended easily by writing additional Ruby modules.
There are three methods to install capistrano on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install capistrano Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install capistrano using apt-get by running the following command:
sudo apt-get -y install capistrano
Install capistrano Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install capistrano using apt by running the following command:
sudo apt -y install capistrano
Install capistrano 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 Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install capistrano using aptitude by running the following command:
sudo aptitude -y install capistrano
How To Uninstall capistrano on Debian 9
To uninstall only the capistrano package we can use the following command:
sudo apt-get remove capistrano
Uninstall capistrano And Its Dependencies
To uninstall capistrano and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove capistrano
Remove capistrano Configurations and Data
To remove capistrano configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge capistrano
Remove capistrano configuration, data, and all of its dependencies
We can use the following command to remove capistrano configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge capistrano
Dependencies
capistrano have the following dependencies:
References
Summary
In this tutorial we learn how to install capistrano package on Debian 9 using different package management tools: apt, apt-get and aptitude.