How to install rvm for root
This will install and load rvm
for root. The destination is /opt/rvm
instead of the default /usr/local
. Bash:
echo 'export rvm_prefix="$HOME"' > /root/.rvmrc
echo 'export rvm_path="$HOME/.rvm"' >> /root/.rvmrc
curl -L get.rvm.io |rvm_path=/opt/rvm bash -s stable
source /etc/profile.d/rvm.sh
Written by AR.
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rvm
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#