> For the complete documentation index, see [llms.txt](https://www.logeshpaul.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.logeshpaul.com/wiki/code/rbenv.md).

# Rbenv

Install via Homebrew

```sh
brew install rbenv ruby-build
```

View list of versions installed

```sh
rbenv versions
```

Set specific version

```sh
rbenv local <version-number> # eg. rbenv local 2.7.2
```

Uninstall version

```sh
rbenv uninstall <version-number> # eg. rbenv uninstall 2.7.2
```

Add the below code to `~/.zshrc` to take Ruby using rbenv

```sh
eval "$(rbenv init - zsh)"
```
