Installing Capistrano via RVM (Ruby Version Manager)

I had been struggling real hard trying to install Capistrano for web deployment, and went through lots of blogs and sites for reference. No solutions came up and also ended up in purging apt-get on my Linux. That caused real problem and I had to restart with fresh installation of Linux OS. So far I’ve come up with best solution for Capistrano installation which is real quick and easy.

  1. Primarily install mpapis public key
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

2. Installing RVM (Ruby Version Manager)

curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm

3. To confirm the rvm installation

rvm --version

4. Installing Ruby version 2.2.3

rvm install ruby-2.4.1
rvm use 2.4.1 --default

Note: You can install any version of Ruby just by specifying as rvm install ruby-1.25.32

5. To confirm ruby installation

ruby -v

6. Installing capistrano version 3.4.0

gem install capistrano -v 3.4.1

Note: You can install any version of Capistrano just by specifying as gem install capistrano -v 3.4.0

7. In case to uninstall the previously installed capistrano

gem uninstall capistrano
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.