Question

I'm sitting here with a cPanel server, and I want to uninstall ruby, and ruby on rails.

I can see there is /scripts/installruby, but not a remove.

Does anyone know how I can uninstall ruby and rails from my server? So I can free up the space given I don't use it anyway?

Please note that I do have full root access to the server!

Was it helpful?

Solution

It depends on what you run. If Ruby was installed through a packet manager like apt you can simply use that to uninstall it.

apt-get remove ruby

If the ruby install was a build from source you obviously either want to find the sources and do a make uninstall or you simply delete the folders where ruby is at (which ruby gives you the paths)

Ruby on Rails is only a gem inside ruby - so deleting the ruby folder with the gem folder in it will also remove rails. Make sure to clean up your path of any references to the ruby/bin and gem/bin folders and you should be good.

Then you have to figure out what application server was running ruby on your box. And uninstall those seperatly (passenger, unicorn, mongrel etc)..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top