Skip to content

rbenv/rbenv-installer

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

rbenv installer & doctor scripts

rbenv-installer

The rbenv-installer script idempotently installs or updates rbenv on your system. If Homebrew is detected, installation will proceed using brew install/upgrade. Otherwise, rbenv is installed under ~/.rbenv.

Additionally, ruby-build is also installed if rbenv install is not already available.

# with curl
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash

# alternatively, with wget
wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer -O- | bash

The installer script is meant for casual use on your own development machine. For automating installation across machines it's better to avoid using this script in favor of fine-tuning rbenv & ruby-build installation manually. Some environments—such as container images meant for either Ruby development or production—should not be switching between multiple Ruby versions at all, so if you are installing rbenv there, you are likely doing something wrong.

rbenv-doctor

You can verify the state of your rbenv installation with:

# with curl
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor | bash

# alternatively, with wget
wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor -O- | bash

About

Installer and doctor scripts for rbenv

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages