mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 22:33:52 -05:00
Add upgrade instructions
This commit is contained in:
23
README.md
23
README.md
@@ -41,6 +41,7 @@ tools that do one thing well.
|
|||||||
|
|
||||||
* [1 How It Works](#section_1)
|
* [1 How It Works](#section_1)
|
||||||
* [2 Installation](#section_2)
|
* [2 Installation](#section_2)
|
||||||
|
* [2.1 Upgrading an existing installation](#section_2.1)
|
||||||
* [3 Usage](#section_3)
|
* [3 Usage](#section_3)
|
||||||
* [3.1 rbenv global](#section_3.1)
|
* [3.1 rbenv global](#section_3.1)
|
||||||
* [3.2 rbenv local](#section_3.2)
|
* [3.2 rbenv local](#section_3.2)
|
||||||
@@ -130,6 +131,28 @@ when installing a gem that provides a binary).
|
|||||||
|
|
||||||
$ rbenv rehash
|
$ rbenv rehash
|
||||||
|
|
||||||
|
### <a name="section_2.1"></a> 2.1 Upgrading an existing installation
|
||||||
|
|
||||||
|
If you've installed rbenv using the instructions above, you can
|
||||||
|
upgrade your installation at any time using git.
|
||||||
|
|
||||||
|
To upgrade to the latest development version of rbenv, use `git pull`:
|
||||||
|
|
||||||
|
$ cd ~/.rbenv
|
||||||
|
$ git pull
|
||||||
|
|
||||||
|
To upgrade to a specific release of rbenv, check out the corresponding
|
||||||
|
tag:
|
||||||
|
|
||||||
|
$ cd ~/.rbenv
|
||||||
|
$ git fetch
|
||||||
|
$ git tag
|
||||||
|
v0.1.0
|
||||||
|
v0.1.1
|
||||||
|
v0.1.2
|
||||||
|
v0.2.0
|
||||||
|
$ git checkout v0.2.0
|
||||||
|
|
||||||
## <a name="section_3"></a> 3 Usage
|
## <a name="section_3"></a> 3 Usage
|
||||||
|
|
||||||
Like `git`, the `rbenv` command delegates to subcommands based on its
|
Like `git`, the `rbenv` command delegates to subcommands based on its
|
||||||
|
|||||||
Reference in New Issue
Block a user