1

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!

4

1 回答 1

1

这取决于你跑什么。如果 Ruby 是通过像这样的数据包管理器安装的,apt您可以简单地使用它来卸载它。

apt-get remove ruby

如果 ruby​​ 安装是从源代码构建的,那么您显然要么想找到源代码并执行 a make uninstall,要么您只需删除 ruby​​ 所在的文件夹(which ruby为您提供路径)

Ruby on Rails 只是 ruby​​ 中的一个 gem - 因此删除包含 gem 文件夹的 ruby​​ 文件夹也会删除 rails。确保清理对ruby/bingem/bin文件夹的任何引用的路径,你应该很好。

然后你必须弄清楚你的机器上运行 ruby​​ 的应用程序服务器。并单独卸载那些(乘客独角兽杂种等)..

于 2011-12-31T13:38:39.557 回答