mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-02 16:41:16 -05:00
Update README.md
Added Installation and uninstallation instructions for Debian and Arch Linux Family Give a little more details about Ubuntu's .bash_profile issue
This commit is contained in:
parent
62d7798270
commit
5f7597e754
1 changed files with 41 additions and 21 deletions
58
README.md
58
README.md
|
@ -39,8 +39,7 @@ RVM?**](https://github.com/rbenv/rbenv/wiki/Why-rbenv%3F)
|
|||
* [Choosing the Ruby Version](#choosing-the-ruby-version)
|
||||
* [Locating the Ruby Installation](#locating-the-ruby-installation)
|
||||
* [Installation](#installation)
|
||||
* [Homebrew on macOS](#homebrew-on-macos)
|
||||
* [Upgrading with Homebrew](#upgrading-with-homebrew)
|
||||
* [Using Package Managers](#using-package-managers)
|
||||
* [Basic GitHub Checkout](#basic-github-checkout)
|
||||
* [Upgrading with Git](#upgrading-with-git)
|
||||
* [Updating the list of available Ruby versions](#updating-the-list-of-available-ruby-versions)
|
||||
|
@ -150,12 +149,12 @@ Version names to rbenv are simply the names of the directories in
|
|||
sure to fully uninstall RVM and remove any references to it from
|
||||
your shell initialization files before installing rbenv.
|
||||
|
||||
### Homebrew on macOS
|
||||
|
||||
If you're on macOS, we recommend installing rbenv with
|
||||
[Homebrew](https://brew.sh).
|
||||
### Using Package Managers
|
||||
|
||||
1. Install rbenv.
|
||||
- **macOS**
|
||||
If you're on macOS, we recommend installing rbenv with
|
||||
[Homebrew](https://brew.sh).
|
||||
|
||||
~~~ sh
|
||||
$ brew install rbenv
|
||||
|
@ -164,6 +163,24 @@ If you're on macOS, we recommend installing rbenv with
|
|||
Note that this also installs `ruby-build`, so you'll be ready to
|
||||
install other Ruby versions out of the box.
|
||||
|
||||
- **Upgrading with Homebrew**
|
||||
|
||||
To upgrade to the latest rbenv and update ruby-build with newly released
|
||||
Ruby versions, upgrade the Homebrew packages:
|
||||
|
||||
~~~ sh
|
||||
$ brew upgrade rbenv ruby-build
|
||||
~~~
|
||||
- **Debian, Ubuntu and their derivatives**
|
||||
~~~ sh
|
||||
$ sudo apt install rbenv
|
||||
~~~
|
||||
- **Arch Linux and it's derivatives**
|
||||
|
||||
Archlinux has an [AUR Package](https://aur.archlinux.org/packages/rbenv/) for
|
||||
rbenv and you can install it from the AUR using the instructions from this
|
||||
[wiki page](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_and_upgrading_packages)
|
||||
|
||||
2. Set up rbenv in your shell.
|
||||
|
||||
~~~ sh
|
||||
|
@ -195,16 +212,6 @@ If you're on macOS, we recommend installing rbenv with
|
|||
`rbenv install`.
|
||||
|
||||
|
||||
#### Upgrading with Homebrew
|
||||
|
||||
To upgrade to the latest rbenv and update ruby-build with newly released
|
||||
Ruby versions, upgrade the Homebrew packages:
|
||||
|
||||
~~~ sh
|
||||
$ brew upgrade rbenv ruby-build
|
||||
~~~
|
||||
|
||||
|
||||
### Basic GitHub Checkout
|
||||
|
||||
For a more automated install, you can use
|
||||
|
@ -236,8 +243,13 @@ a systemwide install.
|
|||
~~~
|
||||
|
||||
* For **Ubuntu Desktop**:
|
||||
|
||||
In Ubuntu ~/.bash_profile is only sourced by bash when started in interactive login mode.
|
||||
That is typically only when you login at the console (Ctrl+Alt+F1..F6), or connecting via ssh.
|
||||
This issue is explained in details
|
||||
[here](https://askubuntu.com/questions/121073/why-bash-profile-is-not-getting-sourced-when-opening-a-terminal#121075).
|
||||
~~~ bash
|
||||
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
||||
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
|
||||
~~~
|
||||
|
||||
* For **Zsh**:
|
||||
|
@ -413,9 +425,17 @@ uninstall from the system.
|
|||
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:
|
||||
perform the rbenv package removal.
|
||||
- Homebrew:
|
||||
|
||||
brew uninstall rbenv
|
||||
`brew uninstall rbenv`
|
||||
- Debian, Ubuntu and their derivatives:
|
||||
|
||||
`sudo apt purge rbenv`
|
||||
|
||||
- Archlinux and it's derivatives:
|
||||
|
||||
`sudo pacman -R rbenv`
|
||||
|
||||
## Command Reference
|
||||
|
||||
|
|
Loading…
Reference in a new issue