Tutorial by Examples

If you don't have any RubyGems installed, there is still the pre-gem approach to getting software, doing it manually: Download from RubyGems Unpack into a directory and cd there Install with: ruby setup.rb (you may need admin/root privilege) sudo ruby setup.rb For more details...
Make sure you have ruby installed before installing rubygems, and then: Installing RubyGems Using apt-get on Ubuntu sudo apt-get install rubygems Installing RubyGems Using yum sudo yum install rubygems Manual Installation Method wget https://rubygems.org/rubygems/rubygems-2.6.6.tgz tar xv...
sudo apt-add-repository ppa:brightbox/ruby-ng Hit Enter to confirm sudo apt-get update Then you can install your ruby version of choice (the ppa supports ruby2.0 ruby2.1 ruby2.2 ruby2.3 and legacy versions ruby1.8 ruby1.9.1) Don't forget to include the respective -dev package for your version. Ot...
# list gem sources: gem sources -l # remove default gem source: gem sources -r https://rubygems.org/ # add other gem sources: gem sources -a https://ruby.taobao.org/

Page 1 of 1