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 to take care of this (according to the rvm document here: https://rvm.io/workflow/rvmrc/ ) but no luck, I found a rvmrc
file under /etc/
Is there any step by step instruction I could follow?
You can do
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: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/rvm
rvm repair all
andrvm reload
And you are good to go!