xlkwtq
Last Updated: February 25, 2016
·
2.114K
· hura

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