简体   繁体   中英

How to remove complete RVM from system with .bashrc and .bash_profile

I have some issue with my current RVM. I am not able to upgrade it and also not able to install new ruby version. I am also not able to install new gems in my system as on bundle install it returns rubygems error(getaddrinfo-error).

Please suggest me right direction to remove it and reinstall it safely.

Thanks

rvm implode

From the rvm 'documentation' :

(seppuku) removes the rvm installation completely.

This means everything in $rvm_path (~/.rvm || /usr/local/rvm).

This does not touch your profiles. However, this means that you must manually clean up your profiles and remove the lines which source RVM.

So I'd say you execute rvm implode and then remove every rvm related line you inserted in .bash_profile , .profile , .bashrc etc.

Type these commands:

cd ~
rm -rf .rvm

Those will move you to your home directory, and remove the current ~/.rvm directory.

At that point, you can reinstall RVM without needing to remove the initializers from your .bashrc or .bash_profile files.

It's important to understand RVM's installation process , so I strongly suggest you read through that document before you reinstall.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM