mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Provide uninstall instructions in the README
This commit is contained in:
parent
43b28caa94
commit
46fbc5414a
1 changed files with 25 additions and 0 deletions
25
README.md
25
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
|
||||
|
|
Loading…
Reference in a new issue