Currently I have rvm installed under /home/john/.rvm
How do move rvm to the location /opt/local/rvm ?
I tried to use the rvmrc file
Figure out myself by doing some research online, hope this can help someone out:
Suppose you want to move from home/username/.rvm to /opt/local/rvm
Update you .bash_profile or .bashrc to:
if [ -s "$HOME/.rvmrc" ]; then source "$HOME/.rvmrc" fi # to have $rvm_path defined if set if [ -s "${rvm_path-$HOME/.rvm}/scripts/rvm" ]; then source "${rvm_path-$HOME/.rvm}/scripts/rvm" fi
find your .rvmrc under $HOME/.rvmrc, if not found, create one and put this line in it:
export rvm_path=/opt/local/rvm
mv $HOME/.rvm/* /opt/local/rvmrvm repair all and rvm reloadAnd you are good to go!
You can do
curl -sSL https://get.rvm.io | bash -s -- --path /path/you/want/rvm/installed/to