Skip to content

Instantly share code, notes, and snippets.

@alexcalaca
Last active April 13, 2024 15:40
Show Gist options
  • Save alexcalaca/f3b31718cdd1d24da70d8a13d62bb73f to your computer and use it in GitHub Desktop.
Save alexcalaca/f3b31718cdd1d24da70d8a13d62bb73f to your computer and use it in GitHub Desktop.
How to remove RVM from cloud9

My profile: https://about.me/alexandrecalaca

1. Check you RVM version

rvm version

You`re going to a message like this: rvm 1.29.2 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io/]

2. Uninstall RVM gem

gem uninstall rvm

3. Implode RVM

rvm implode --force

4. Remove directories related to RVM

sudo rm -rf /etc/profile.d/rvm.sh 
sudo rm -rf /usr/local/rvm/scripts/zsh/Completion/_rvm
sudo rm -rf /usr/local/rvm/scripts/extras/completion.zsh/_rvm
sudo rm -rf /usr/local/rvm/        
sudo rm -rf /etc/rvmrc  
rm -rf ~/.rvmrc

5. Check RVM files
Check if those files have any line/content related to RVM and remove or comment them.

~/.bash_profile 
~/.profile 
~/.zshrc
~/.zlogin

One option is to type c9 and then the filename. Example:

c9 ~/.bashrc 

6. Close the terminal and workspace
7. Open the workspace and terminal
8. Check if RVM is still installed
9. Way to go!

@duanyrf
Copy link

duanyrf commented Apr 20, 2023

Your code works for me from step 3 ahead. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment