With this homebrew will go out and fetch not only ruby but also any dependencies ruby needs to run.
Brew update ruby.
This will take about 30 minutes.
We will be setting up a ruby on rails development environment on macos 10 14 mojave.
Run brew install ruby.
To remove ruby with apt you ll need to check which versions of ruby you have installed.
It s all git and ruby underneath so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.
Apt installs ruby v2 3 1.
Use the package manager to install ruby.
The command is pretty straightforward.
Brew install ruby.
Debian or ubuntu 16 04.
Installing ruby using homebrew is easy.
Homebrew lets you avoid possible security problems associated with using the sudo command to install software like node.
Homebrew macos ruby versions 2 0 and above are included by default in macos releases since at least el capitan 10 11.
The missing package manager for macos or linux.
Homebrew is package manager for macs which makes installing lots of different software like git ruby and node simpler.
Homebrew is a commonly used package manager on macos.
Installing homebrew on a mac installation.
Alright so now that homebrew is installed we can use it to install a newer version of ruby.
To uninstall follow the directions listed here.