i don't see a difference between /opt and /usr/local , I just think it's a matter of preference
So if I want to uninstall Ruby from /opt I do something like this:
rm -rf /opt/ruby-1.8.7
To uninstall Ruby from /usr/local is a lot more work.http://github.com/mxcl/homebrew/tree/ is a package manager that tries to do just that