How to remove RVM (Ruby Version Manager) from my system

前端 未结 12 1575
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 07:53

How can I remove RVM (Ruby Version Manager) from my system?

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 08:36

    When using implode and you see:

    Psychologist intervened, cancelling implosion, crisis avoided :)
    

    Then you may want to use --force

    rvm implode --force
    

    Then remove RVM from the following locations:

    rm -rf /usr/local/rvm
    sudo rm /etc/profile.d/rvm.sh
    sudo rm /etc/rvmrc
    sudo rm ~/.rvmrc
    

    Check the following files and remove or comment out references to RVM:

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

    Comment-out/remove the following lines from /etc/profile:

     source /etc/profile.d/sm.sh
     source /etc/profile.d/rvm.sh
    

    /etc/profile is a read-only file so use:

    sudo vim /etc/profile
    

    And after making the change write using a bang!

    :w!
    

    Finally re-login/restart your terminal.

提交回复
热议问题