Skip to content

Instantly share code, notes, and snippets.

@ameernormie
Last active April 17, 2020 17:44
Show Gist options
  • Save ameernormie/6dd6793dfbdaac2eb8e3a61d8159985d to your computer and use it in GitHub Desktop.
Save ameernormie/6dd6793dfbdaac2eb8e3a61d8159985d to your computer and use it in GitHub Desktop.
### Install
brew install rbenv
### Installing Ruby versions
# list all available versions:
$ rbenv install -l
# install a Ruby version:
$ rbenv install 2.0.0-p247
### Upgrading with Homebrew
$ brew upgrade rbenv ruby-build
### Install ruby bundler
$ gem install bundler
### Installing Ruby gems
$ gem install bundler
Check the location where gems are being installed with gem env:
$ gem env home
### Uninstalling Ruby versions
As time goes on, Ruby versions you install will accumulate in your ~/.rbenv/versions directory.
To remove old Ruby versions, simply rm -rf the directory of the version you want to remove. You can find the directory of a particular Ruby version with the rbenv prefix command, e.g. rbenv prefix 1.8.7-p357.
The ruby-build plugin provides an rbenv uninstall command to automate the removal process.
# => ~/.rbenv/versions/<ruby-version>/lib/ruby/gems/...
### Uninstalling rbenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment