ruby clean up

I have several versions of ruby on my mac, I don’t know why I would need them. But, how would I go about removing previously installed versions? I’m up to Ruby 2.5 now.

Thanks,

Joe

I have several versions of ruby on my mac, I don't know why I would need
them.

You might need multiple versions because you have legacy code
to maintain, or just like to experiment with rubies other than MRI.

But, how would I go about removing previously installed versions?

That depends on how you installed them :slight_smile:

I used homebrew to install ruby.

I guess I have to install rails on top of each version too.

I don’t have any legacy code. Just trying to learn this stuff.

But chances are at some point you'll run into opportunities/need to
work on other people's legacy code at least. :slight_smile:

I would strongly recommend a version manager like rvm or rbenv
regardless. If nothing else it facilitates upgrade testing.

I don’t think so. No luck so far.

But "so far" doesn't negate the above point. And you'll be way better
off if you're comfortable with e.g. rvm or rbenv or asdf for managing
your development environments.

Better use version managers like RVM or Rbenv

I used homebrew to install ruby.

To remove old Homebrew formulae, see the cleanup section from https://docs.brew.sh/FAQ

Fred