Last Updated: September 09, 2019
·
3.515K
· rauh

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