How can I cleanly remove my ruby version 1.8.7 from CentOS 5? I installed it by downloading the source code and performed a make.
|
You shouldn't install software this way.
./configure --prefix=/tmp/somedir # by default prefix points to /usr/local
make
make install # this will install ruby in /tmp/somedir instead of where you've installed it
cd /tmp/somedir
find . -type f -exec rm -i /usr/local{} \; # Use without -i if you are shure
find . -type d -exec rm -ir /usr/local{} \;
I hope this will help you |
||||
|
|
You could also try the technique from this question. Basically look for
Note that this will only delete files, not directories. I guess you could also do
after the first command. That should clean up the directories aswell. And |
|||
|
It will not be easy if you issued configure and make without using --prefix switch, but you can try this way:
In alien_files.txt you'll have the files which weren't installed via rpm (including ruby's). Of course you'll have to filter /proc, /tmp, ... files, but I said that it will not be easy. :) If you like the RPM philosophy as I do, then read my article on howto install Ruby Enterprise 1.8.7 on CentOS 5 as rpm here: http://www.cherpec.com/2009/10/ruby-enterprise-edition-1-8-7-source-rpm-for-centos5-rhel5/ |
|||
|
|