From 46fbc5414a83885a7356ad3d030ad2692832a1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 9 Jun 2015 23:27:21 +0200 Subject: [PATCH] Provide uninstall instructions in the README --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 7cad9055..b32e4102 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ RVM?**](https://github.com/sstephenson/rbenv/wiki/Why-rbenv%3F) * [How rbenv hooks into your shell](#how-rbenv-hooks-into-your-shell) * [Installing Ruby Versions](#installing-ruby-versions) * [Uninstalling Ruby Versions](#uninstalling-ruby-versions) + * [Uninstalling rbenv](#uninstalling-rbenv) * [Command Reference](#command-reference) * [rbenv local](#rbenv-local) * [rbenv global](#rbenv-global) @@ -298,6 +299,30 @@ Ruby version with the `rbenv prefix` command, e.g. `rbenv prefix The [ruby-build][] plugin provides an `rbenv uninstall` command to automate the removal process. +### Uninstalling rbenv + +The simplicity of rbenv makes it easy to temporarily disable it, or +uninstall from the system. + +1. To **disable** rbenv managing your Ruby versions, simply remove the + `rbenv init` line from your shell startup configuration. This will + remove rbenv shims directory from PATH, and future invocations like + `ruby` will execute the system Ruby version, as before rbenv. + + `rbenv` will still be accessible on the command line, but your Ruby + apps won't be affected by version switching. + +2. To completely **uninstall** rbenv, perform step (1) and then remove + its root directory. This will **delete all Ruby versions** that were + installed under `` `rbenv root`/versions/ `` directory: + + rm -rf `rbenv root` + + If you've installed rbenv using a package manager, as a final step + perform the rbenv package removal. For instance, for Homebrew: + + brew uninstall rbenv + ## Command Reference Like `git`, the `rbenv` command delegates to subcommands based on its