Last active
April 17, 2020 17:44
-
-
Save ameernormie/6dd6793dfbdaac2eb8e3a61d8159985d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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