Answer the question
In order to leave comments, you need to log in
How to remove Ruby from the server?
Hello!
How to completely remove Ruby from the server?
# which ruby
/usr/local/bin/ruby
# whereis ruby
ruby: /usr/bin/ruby1.8 /usr/bin/ruby /usr/lib/ruby /usr/bin/X11/ruby1.8 /usr/bin/X11/ruby /usr/local/bin/ruby /usr/local/lib/ruby /usr/share/man/man1/ruby.1.gz
Answer the question
In order to leave comments, you need to log in
dpkg -l | grep ruby
And carefully remove the packages that are found.
the uninstall procedure is always the opposite of the installation procedure.
if you messed up something like hell, or want to experiment - it's better to use the installation of ruby, rails and gems via rbenv, in your home directory without affecting the system
With this command, you can see which Ruby is currently in use.
lsof -c ruby | grep 'ruby$'
ruby 940 deployer txt REG 0,36 127407 56362580 /home/deployer/.rvm/rubies/ruby-2.2.1/bin/ruby
/usr/local/include/ruby-x.x.x/
/usr/local/lib/ruby
/usr/local/share/ri
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question