If you can help or wish to become one of the maintainers - just start helping.
You can find more RVM related projects at
RVM Github organization.
∞RVM in offline mode
This is only rough description of the process, not all the steps need to work right away, feel free to propose fixes here: rvm offline source.
∞Installing RVM offline
- Choose the version of RVM you wish to deploy from: https://github.com/rvm/rvm/tags
- Download the rvm tarball:
curl -sSL https://github.com/rvm/rvm/tarball/stable -o rvm-stable.tar.gz
- Create and enter rvm directory:
mkdir rvm && cd rvm
- Unpack it:
tar --strip-components=1 -xzf ../rvm-stable.tar.gz
- Install rvm:
./install --auto-dotfiles
- use --help to get the options
- sudo password may be required depending on the type of install
- Load rvm:
source ~/.rvm/scripts/rvm
- if --path was specified when instaling rvm, use the specified path rather than '~/.rvm'
∞Download Ruby, rubygems and yaml
- Download ruby
- Find
tar.bz2
version at: https://ftp.ruby-lang.org/pub/ruby/ (check sub-directories) - Download with curl: :
curl -sSL https://ftp.ruby-lang.org/pub/ruby/ruby-2.2.0.tar.bz2 -o ruby-2.2.0.tar.bz2
- Must use ruby source archive with .tar.bz2 extension! The versions at
https://www.ruby-lang.org/en/downloads/ are
tar.gz
, change ittar.bz2
before downloading.
- Find
- Download rubygems
- Find version at: https://github.com/rubygems/rubygems/tags
- Download with curl:
curl -sSL http://production.cf.rubygems.org/rubygems/rubygems-2.4.6.tgz -o rubygems-2.4.6.tgz
- Download yaml (required by rvm)
- Download from rvm.io with curl:
curl -sSL http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz -o yaml-0.1.6.tar.gz
- Download from rvm.io with curl:
- Save these packages for offline use by storing them in the rvm archive folder
$rvm_path/archives/
by default- An alternate archive folder can be specified in the
.rvmrc
file - sample usage:
echo rvm_archives_path=/path/to/tarballs/ >> ~/.rvmrc
- An alternate archive folder can be specified in the
∞Install dependencies
- Disable automatic dependencies ("requirements") fetching:
rvm autolibs read-fail
- Manually download and install dependencies
- Get the list of dependencies:
rvm requirements
- Consult your system manual how to manually download and install the required software
- Get the list of dependencies:
∞Installing Ruby
- Clean default gems:
echo "" > ~/.rvm/gemsets/default.gems
- Clean global gems:
echo "" > ~/.rvm/gemsets/global.gems
- Install Ruby:
rvm install 2.2.0 --rubygems 2.4.6
(this may require sudo password for autolibs)- Install any other Ruby versions you want similarly
- Set default Ruby version:
rvm use 2.2.0 --default
∞Installing gems
There are multiple ways to install gems, you could download the gem files, but the best way seems to be Bundler: http://bundler.io/bundle_package.html
Example installing rails
gem:
∞Online
- Create a (fake) project directory:
mkdir gems; cd gems
- Install bundler:
gem install bundler
- Create
Gemfile
:bundle init
- Add
rails
to it:echo "gem 'rails'" >> Gemfile
- Install all gems:
bundle install
- Get gem files:
bundle package
- Package project:
tar czf gems.tgz .
- Download bundler from https://rubygems.org/gems/bundler the Download link
∞Offline
- Create a (fake) project directory:
mkdir gems; cd gems
- Unpack gems:
tar xzf gems.tgz
- Install bundler:
gem install bundler-1.8.3.gem
- Install gems:
bundle install --local