Other than the pre-bundled-with-my-default-OS install (eg: /usr/bin/ruby
on macOS 10.14), I want to completely wipe my OS clean of Ruby before I reinstall Ruby to a "known state." Specifically, I want to better complete steps 1 and 2 from this procedure that I wrote.
How do I go about figuring this out?
Example Ruby artifacts I've found thus far (in this example, for macOS 10.14.6
):
- Any Ruby-related package (eg:
ruby ruby-build rbenv
) installed by Homebrew. - Files/dirs from the version managers:
~/.rbenv/ ~/.rvm/
. (Alas, when you do not know how many version managers you might have employed in the past, simply because some random Ruby-application-install procedure suggested you install one and you did not know what you were doing--because again, I'm quite ignorant about the whole Ruby system because I'm just a user and not an expert/developer--and now I've got different-version-manager cruft laying around all over the place. This makes for a rather-difficult predicament when you can't get Asciidoctor, a Ruby-based app, to run well enough to get your job done.) - Other, misc (?) files:
~/.gem ~/.ruby-version
and maybe other things I've not yet found? - Other things I've not yet discovered (?).
My OS image is many years (decades?) old (it's been upgraded through many macOS 10.x
upgrades, and the base image has been cloned through many MacBook hardware upgrades) and has acquired a lot of Ruby cruft over that time. Ruby things are (or at least were) broken, and I want to start fresh.
I want to better understand where all these things potential live: files, installed-software packages and any other artifacts related to the engines/platforms/interpreters and $HOME
files and directories that are typically part of Ruby (and Ruby version_manager-based) installations.
My system runs macOS 10.14.6 and I'm a Homebrew user. As such, I minimally seek macOS-specific answers. I'm also curious in info that might also apply to Linux, since my team and I also run many Ubuntu and other Linux installations.