How to remove Ruby from Ubuntu

前端 未结 4 610
谎友^
谎友^ 2020-12-13 20:55

I want to remove Ruby, so I try this. How can I remove this?

sudo apt-get autoremove ruby
Reading package lists... Done
Building dependency tree       
Readi         


        
4条回答
  •  萌比男神i
    2020-12-13 21:48

    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
    

提交回复
热议问题