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
If you used rbenv to install it, you can use
rbenv
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