How can I uninstall Ruby on ubuntu?

前端 未结 11 1561
长情又很酷
长情又很酷 2020-11-28 05:45

How can I uninstall Ruby 1.9.2dev (2010-07-02) [i486-linux] on ubuntu? Need to reinstall - please help

11条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 06:19

    If you used rbenv to install it, you can use

    rbenv versions 
    

    to see which versions you have installed.

    Then, use the uninstall command:

    rbenv uninstall [-f|--force] 
    

    for example:

    rbenv uninstall 2.4.0  # Uninstall Ruby 2.4.0
    

    If you installed Rails, it will be removed, too.

提交回复
热议问题