uninstall ruby version from rbenv

前端 未结 3 1933

How to uninstall or remove ruby version from rbenv. I have installed two versions of ruby. While switching to ruby 1.9.3, I am getting segmentation fault. Can anyone please help

3条回答
  •  清歌不尽
    2021-01-31 01:49

    New way

    Use the uninstall command: rbenv uninstall [-f|--force]

    rbenv uninstall 2.1.0  # Uninstall Ruby 2.1.0
    

    Use rbenv versions to see which versions you have installed.


    Old way

    To remove a Ruby version from rbenv, delete the corresponding directory in ~/.rbenv/versions. E.g.

    rm -rf ~/.rbenv/versions/1.9.3-p0
    

    Run rbenv rehash afterwards to clean up any stale shimmed binaries from the removed version.

提交回复
热议问题